CS2102 AY2019/2020, Semester 2 Database Project
This is a simulated web-based database application for a food delivery service. This project was bootstrapped with Create React App, Express server and PostgresSQL as the database.
Ensure that you have the following installed before running the application:
- Install PostgresSQL
- Create a local database
moodpandadbby typingcreate database moodpandadb;in your psql terminal. Type\c moodpandadbto connect to the database. Alternatively, you can use pgadmin.
npm is used as the package manager for the backend.
- Install required dependencies using
npm install. - Navigate to ./Server and type the command
npm run builddbto build the database and load data for the application. - Type
npm run devstartto start the backend application on your local host.
packages are manaed using yarn
- Install required dependecies using
yarn install - Navigate to ./Client and type the command
yarn buildto build the application for production to thebuildfolder. - Type the command
yarn startto run the frontend application on your local host localhost:3000.
The application should be running in your browser now and an alert box should popup to notify that you are connected.
Refer to the image below for what your browser should look like.
Open http://localhost:3000 to view the web application in the browser.
