- Download the postgres locally and set it up.
- In cmd initialize psql command line
psql -U <your_username> -Wand enter the password - Run the script below (change values to fit the applications.properties file)
CREATE USER route_alert; CREATE DATABASE route_alert; ALTER USER route_alert WITH ENCRYPTED PASSWORD 'testpassword'; GRANT ALL PRIVILEGES ON DATABASE route_alert to route_alert; ALTER DATABASE route_alert OWNER TO route_alert; - All done, now you should have a database running that app can connect to
- Install nodejs (npm comes with it)
- Setup proper environment file in frontend
- Duplicate
template.envin/frontendand rename new file into.env, fill in env variables where applicable
- Duplicate
- Install frontend dependencies (from root dir)
cd frontend npm install - Start the app (from root dir)
npm start - Access app (http://localhost:3000)