Skip to content

B0ras/RoadTaxApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

460 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAVA_DevOps

Prerequisites

1.You must have ansible installed on your local machine. 2. You must have docker and docker-compose installed ( How to install Docker, How to install Docker-Compose

Initial Setup

  1. Change the variables on the application.properties files, located at the app folder so they match your configuration or it probably won't work.
  2. Do the same for the environment file, located at the ansible/playbook/vars folder (it must be encrypted with ansible-vault).
  3. Change the hosts.yml on the ansible folder, so they match your ssh config file. Alternatively, add a devopsvm host on your ~/.ssh/config file looking like this:
Host devopsvm
        HostName #The ip of the machine you will deploy
        User test
        IdentityFile path/to/private/key
  1. Add the following variables to you Jenkins credentials:
  • DOCKER-PASS: Password for docker registry.
  • VAULT: The password for the ansible vault
  1. Change the variables base on the ansible/vars/*test.yml files (alternatively, you can add use the encrypted var files with password Nasos200)

Installation instructions

1. Build app

cd app
sudo ./mvnw clean package

2. Build container

docker-compose up

3.Execute ansible playbook setup.yml

cd ansible
ansible-playbook playbooks/setup.yml

User Instructions

The main page is the first thing we see. This is what it looks like when the user is not logged in: Main page with user not logged in

In order for the form to be accessible, the user must logged in. User must be logged in

Scenario A: The user is a Normal User.

Then, the user gets redirected to the main page, where he can submit his form. Now we can submit

Now, the user can easily submit his form. Time to submit

After submission, a preview of his data is presented where he can confirm them or change them. Preview data

Finally, the user can see the price of the tax and pay the tax. Pay the tax

Scenario B: The user is a Admin.

This is the admin panel where the admin can add users. Admin panel

After choosing the type of user, the admin can see a list of available users of that type (e.g. Normal Users). View Normal Users

If the admin wishes, it is very easy to add users by clicking the add button and submitting the user information. Add User

Of course, the admin can add admins the same exact way but by choosing Admins on the admin panel.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors