- Node.js (npm)
- Yarn
- Follow this tutorial: MongoDB Setup Guide (watch between 2:01:08 and 2:03:00).
- Copy the provided MongoDB connection string.
- In the
backend/directory, create a.envfile with the following content:PORT=8000 MONGO_URL=mongodb+srv://... (your connection string) - Install the required dependencies:
$ cd backend $ yarn
- Start the backend server:
$ yarn start
- Install the required dependencies:
$ cd frontend $ yarn
- In the
frontend/directory, create a.envfile with the following content, ensuring the domain name matches the backend server's domain.VITE_API_URL="http://localhost:8000/api" - Start the frontend server:
$ yarn start ... ➜ Local: http://localhost:4173/ ➜ Network: use --host to expose ➜ press h to show help
- Open the output URL in your browser to view the web page. In this example, go to http://localhost:4173/.
This project is the HW2 for the EE3035: Web Programming course, Fall 2023. Some of the code has been adapted from the demo available at: https://github.com/ntuee-web-programming/112-1-unit1-trello-clone.