-
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.
forked from CS2102-AY2021-S1-G17/CS2102_2021_S1_Team17
-
Notifications
You must be signed in to change notification settings - Fork 0
Login as admin: phone:8 pwd:0
Yuxuan1998/CS2102_2021_S1_Team17
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Login as admin: phone:8 pwd:0
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- HTML 50.1%
- CSS 21.1%
- PLpgSQL 14.6%
- JavaScript 14.2%