Skip to content
 
 

Latest commit

 

History

184 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run the app

1. Database setup

  • Download the postgres locally and set it up.
  • In cmd initialize psql command line psql -U <your_username> -W and 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

2. Application start

  1. Install nodejs (npm comes with it)
  2. Setup proper environment file in frontend
    • Duplicate template.env in /frontend and rename new file into .env, fill in env variables where applicable
  3. Install frontend dependencies (from root dir)
    cd frontend
    npm install
    
  4. Start the app (from root dir)
    npm start
    
  5. Access app (http://localhost:3000)

About

June 22, 2024

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages