Skip to content
Pedro Correia edited this page Jul 2, 2019 · 9 revisions

Tutor System - Impress project

Instalation

Install Postgresql for database(version 10.8)

Install Java 11 for spring-boot API

Install Node.js for frontend (version 10.15.3)

sudo apt update
sudo apt install postgresql
sudo apt install nodejs npm

Create DB by loading dump

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
Clone this wiki locally