To run the application in development mode, follow these steps:
1. Start the Server (http://localhost:3001)
-
Open a terminal window.
-
Navigate to the server directory:
cd server
-
Install the server dependencies:
npm install
-
To create the database:
(For Mac or Linux ) Run
npm run build-db
(For Windows) Run
npm run build-db-win
You can also run:
npm run clean-db
to delete the database on Mac or Linux before rebuilding it for a fresh startnpm run clean-db-win
to delete the database on Windows before rebuilding it for a fresh start -
Start the server:
npm run dev
2. Start the Client (http://localhost:3000)
-
Open a second terminal window (do not close the first terminal).
-
Navigate to the client directory:
cd client
-
Install the client dependencies:
npm install
-
Start the client:
npm run dev
Test the app by browsing to the following routes, these would list contents their respective tables:
- Ensure that the server is running before starting the client. The client development will not function properly if the server is not running.
- "TODO:" will be a standard comment used throughout the development of the app for things to be build/added