Demo video here
Heroku page here
Login as admin: phone:8 pwd:0
-
Create a database by running
CREATE DATABASE petcare
in sql terminal. -
Create a file
.env
under the root directory for database setup.Content of the file:
DATABASE_URL=postgres://[:username]:[:password]@localhost:5432/petcare SECRET=catcat
[:username]: replace with database username
[:password]: replace with database password -
In sql terminal, run \i path/to/file/sql/init.sql to execute
sql/init.sql
file. -
Run
npm install
to install packages and dependencies. -
Run
npm start
, open a browser and go tolocalhost:3000
.
In development mode, runnodemon start
to avoid restart server after making changes.