The backend implementation for the HustlePe platform
-
Clone the repository
git clone <repo-url> cd Backend_HustlePe
-
Environment Variables
Copy the sample environment file and fill in your secrets:cp .env.example .env
Edit the
.envfile and provide values for:ACCESS_TOKEN_SECRETandACCESS_REFRESH_TOKEN: Generate strong random strings for JWT secrets.MONGODB_URI: Your MongoDB connection string.CLOUDINARY_CLOUD_NAME,CLOUDINARY_API_KEY,CLOUDINARY_API_SECRET: Get these from your Cloudinary dashboard.STRIPE_API_KEY: Get this from your Stripe dashboard.- Adjust
PORT,CORS_ORIGIN, and expiry values as needed.
-
Start with Docker
Build and run the containers:docker compose build docker compose up
The server should now be running and connected to your configured services.
Now you can setup using docker run:
docker compose build
docker compose up -d
Frontend repo - https://github.com/KniteenK/HustlePe-frontend