MERN Stack application for Ai Growth Exa - AI Based Marketing Agency.
client/: React + Vite Frontendserver/: Node + Express Backend
-
Install Dependencies (if not already done):
npm install # Root cd client && npm install cd server && npm install
-
Run Development Mode:
npm run dev
This runs both client (localhost:5173) and server (localhost:5000) concurrently.
- Server expects
MONGO_URI(default: local) andPORT(default: 5000) inserver/.env.
To run the application locally using Docker Compose (which includes MongoDB, the Express backend, and the React Vite client):
docker compose up -dThe client will be available at http://localhost:5173 and the server at http://localhost:5001.
This project includes a Blue-Green deployment script.
- Ensure your Docker Hub username and image tags are set in the
.envfile (DOCKER_HUB_USERNAMEandIMAGE_TAG). - Run the deploy script:
./deploy/deploy.shThis script handles zero-downtime deployment by switching traffic between active and new container stacks using Nginx.