This document provides necessary information regarding database hosting, app hosting, and detailed steps to deploy and run the project.
- The database is a cloud-based database hosted on DigitalOcean.
- The application (both frontend and backend) is intended to be deployed on a Linux-based Virtual Private Server (VPS) environment, such as DigitalOcean Droplet or any Ubuntu 22.04+ server. During testing and debugging, it can be deployed locally.
- Requirements:
- Node.js (v18 or above)
- npm (v9 or above)
- A process manager like
pm2(optional, for production) - Environment variable setup for database password and JWT secret
- Start both frontend and server at the same time in different terminals
git clone <link of the repo>to download the repository.cd DB_404to enter the directory of the project.npm installto install the necessary packages.npm run devto run vite for frontend.- Before start the backend, remember to run:
export DB_PW='<Password included in report>'export JWT_SECRET='<SECRET included in report>'
node backend/index.jsto start up backend