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, using the Redux and Redux Toolkit template.
Ensure that you have the following installed before running the application:
- 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.
- Open terminal in the Server folder 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.
- Open terminal in the Client folder 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.