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
moodpandadb
by typingcreate database moodpandadb;
in your psql terminal. Type\c moodpandadb
to 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 builddb
to build the database and load data for the application. - Type
npm run devstart
to 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 build
to build the application for production to thebuild
folder. - Type the command
yarn start
to 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.