- Install homebrew (https://brew.sh/)
- Install postgres with homebrew
brew install postgres
- Create postgres user
2.
psql postgres
2.CREATE ROLE postgres WITH LOGIN PASSWORD 'postgres';
- Run
mvn clean install
to build your application - Run schema migration
java -jar target/app-1.0.SNAPSHOT.jar db migrate config.yml --migrations migrations.xml
- Insert questions
psql strive < questions.sql
- Start application with
java -jar target/app-1.0-SNAPSHOT.jar server config.yml
- To check that your application is running enter url
http://localhost:8080