This is a survey web application.
The main purpose is for users to browse the list of available topics and submit their opinions. Different opinions are always important to improve somethings.
There are many options but they are not allowed for all users. There are two user roles which are ADMIN_USER and END_USER. If an user register to the application, he/she is an END_USER. There is only one ADMIN_USER and it is created on the start of the application.
- Create new users
- Create new survey topics
- Update existing survey topics
- Delete survey topics
- View the results for survey topics
- Register to the application
- Login to the application
- Browse the list of available topics and submit their opinions.
- See the survey results for the topics
First you need to install postgresql for database. Also, you need to add bin and lib files of postgresql to path from environment variables.
You can follow below link. But, you should set the postgres password as '12345'. If not, you should update the datasource username and password according to your postgresql. You can do it from src/main/resources/application.properties.
How to Install PostgreSQL & pgAdmin 4 on Windows 10
After the install, open command promt and write the following
- psql -U postgres -h localhost- 12345 (write password for default user postgres)
- create database survey_app; (Then you should see CREATE DATABASE)
Then you can clone the project.
After the clone, git bash to the project folder and write the following
- mvn clean install- cd target
- java -jar surveyapp-0.0.1-SNAPSHOT.jar
That's it. Now you can click this link and test the project.
First you need to login to use methods because they are authorized. ADMIN_USER can use all methods. So, it is better to test with AdMIN_USER
- Login with username : admin@gmail.com and password: admin from auth-controller. - Copy the token. - Click Authorize button and write 'Bearer ' and paste token. Then Authorize.. (Bearer + space + token)Now you can test all the methods. If you want to test END_USER, you can register and apply the same processes with ADMIN_USER.