This project is a full-stack application with a React frontend and an Express backend. It includes user authentication, email verification, password reset, and more.
For more detailed documentation, please refer to the prd.
- Node.js (v14 or higher)
- npm (v6 or higher) or yarn
- MongoDB
- Clone the repository:
git clone https://github.com/your-username/your-repo.git
cd your-repo
- Install dependencies for both client and server:
# Install server dependencies
cd server
npm install
# Install client dependencies
cd ../client
npm install
- Create environment variable files:
# Server environment variables
cd ../server
cp .env.example .env
# Client environment variables
cd ../client
cp .env.example .env
-
Update the .env files with your configuration.
-
Start MongoDB:
sudo systemctl start mongod
sudo systemctl enable mongod
- Start the backend server:
cd server
npm run dev
- Start the frontend client:
cd client
npm start
- Update server/.env
env=production
- Start the app from server
npm run dev
Your app is accessible at http://localhost:500
and the api ar http://localhost:5000/api