-
Notifications
You must be signed in to change notification settings - Fork 45
Home
Pedro Correia edited this page Jul 2, 2019
·
9 revisions
sudo apt update
sudo apt install postgresql
sudo apt install nodejs npm
Change to postgres user and create DB
sudo su -l postgres
dropdb tutordb
createdb tutordb
Create user to access db and load dump
psql tutordb
CREATE USER your-username WITH SUPERUSER LOGIN PASSWORD 'yourpassword';
psql tutordb < dump/tutordb.bak
Run spring-boot API on http://localhost:8080
Firstly, change as-tutor/spring-api/src/main/resources/application.properties
cd spring-api
mvn clean spring-boot:run
See documentation on http://localhost:8080/swagger-ui.html
Run frontend on http://localhost:8081
cd frontend
npm i
npm start