CS2102 Database Systems: Introduction to Web Application Development
Setting up:
-
Make sure NodeJS and PostgreSQL is installed on your computer.
-
Clone this repository to your computer.
-
Navigate into the root folder using command line.
-
Run
npm install
. -
Make a new .env file in the root folder. Copy the following two lines into the .env file and replace the parameters in square bracket with your database host information:
DATABASE_URL=postgres://[sql username]:[sql password]@[host]:[port number]/[database name]
SECRET='secret'
-
Run the /postgresql_scripts/initialization.sql script in your sql server.
-
Run
npm start
in your root directory. -
Open localhost:3000 with your default browser. You should see the index page.
-
If there are code corruption, please download the latest copy of code at https://github.com/lostmushrooms/2102.