Skip to content

Yuxuan1998/CS2102_2021_S1_Team17

 
 

Repository files navigation

Getting started

  1. Create a database by running CREATE DATABASE petcare in sql terminal.

  2. 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

  3. In sql terminal, run \i path/to/file/sql/init.sql to execute sql/init.sql file.

  4. Run npm install to install packages and dependencies.

  5. Run npm start, open a browser and go to localhost:3000.
    In development mode, run nodemon start to avoid restart server after making changes.

About

Login as admin: phone:8 pwd:0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 50.1%
  • CSS 21.1%
  • PLpgSQL 14.6%
  • JavaScript 14.2%