This is a full-stack e-commerce platform built with React, Vite, Node.js, Express, and MongoDB.
We've configured the application to run as a single unit (Monolith) for easy deployment.
- Create a free account on MongoDB Atlas.
- Create a new Cluster (Free tier).
- Under Database Access, create a user with a password.
- Under Network Access, add
0.0.0.0/0(or the IP of your hosting provider). - Copy your Connection String.
- Sign in to Render.
- Create a new Web Service.
- Connect your GitHub repository.
- Use the following settings:
- Environment:
Node - Build Command:
npm install && npm run build - Start Command:
npm start
- Environment:
- Click Advanced and add the following Environment Variables:
NODE_ENV:productionMONGODB_URI:your_mongodb_connection_stringJWT_SECRET:a_long_random_secret_stringRAZORPAY_KEY_ID:your_razorpay_key_idRAZORPAY_KEY_SECRET:your_razorpay_key_secretPORT:10000(Render's default)
- In the Render Dashboard, go to your service's Settings.
- Scroll to Custom Domains and click Add Custom Domain.
- Enter your domain (e.g.,
aerion.com). - Update your domain registrar's DNS settings:
- A Record (for
@): Point to216.24.57.1 - CNAME Record (for
www): Point to your Render URL (e.g.,aerion.onrender.com).
- A Record (for
- Render will automatically issue a Free SSL Certificate once verified.
- Clone the repo.
- Run
npm install. - Create a
.envin the root (or use the one inserver/). - Run
npm run devfor the frontend. - Run
npm run server:devfor the backend.