VYAPO is a full-stack website for a smart POS platform built for restaurants, retail stores, and hospitality businesses.
This repository contains:
frontend/: a Next.js landing websitebackend/: an Express API for contact form submissions and admin request access
GitHub repository:
https://github.com/devashishgorai/Vyapo
- Responsive marketing website built with Next.js
- Premium landing page UI with animations and theme support
- Contact form connected to an Express backend
- Admin endpoint for viewing submitted requests
- MongoDB-backed storage with in-memory fallback during development
- Deployment-ready setup for Vercel and Render
- Frontend: Next.js, React, TypeScript, Tailwind CSS, Framer Motion
- Backend: Node.js, Express, MongoDB, Mongoose
vyapo/
├── frontend/ # Next.js frontend
├── backend/ # Express backend
├── render.yaml # Render deployment blueprint
└── README.md
Install dependencies:
cd frontend
npm install
cd ../backend
npm installCreate env files from the examples:
cp frontend/.env.example frontend/.env.local
cp backend/.env.example backend/.envRun the backend:
cd backend
npm startRun the frontend:
cd frontend
npm run devOpen the app at:
- Frontend:
http://localhost:3000 - Backend:
http://localhost:5050
Frontend:
NEXT_PUBLIC_API_URL=http://localhost:5050
Backend:
MONGO_URI=mongodb+srv://<username>:<password>@<cluster-url>/vyapo?retryWrites=true&w=majority&appName=<app-name>
PORT=5050
FRONTEND_URL=http://localhost:3000
ADMIN_API_KEY=change-this-admin-key
If you already created the GitHub repository manually, use:
git add .
git commit -m "Initial project setup"
git branch -M main
git remote add origin https://github.com/devashishgorai/Vyapo.git
git push -u origin mainIf origin already exists:
git remote set-url origin https://github.com/devashishgorai/Vyapo.git
git push -u origin main- Import the GitHub repository into Vercel.
- Set the project Root Directory to
frontend. - Add the environment variable below:
NEXT_PUBLIC_API_URL=https://your-backend-service.onrender.com
- Deploy the project.
Use either the included render.yaml or create a web service manually with:
- Root Directory:
backend - Build Command:
npm install - Start Command:
npm start
Set these environment variables in Render:
MONGO_URI=<your-mongodb-uri>
FRONTEND_URL=https://your-vercel-project.vercel.app
ADMIN_API_KEY=<your-secret-admin-key>
PORT=5050
- Push the repository to GitHub.
- Deploy the backend to Render.
- Copy the Render backend URL.
- Add that URL in Vercel as
NEXT_PUBLIC_API_URL. - Deploy the frontend to Vercel.
- Update Render
FRONTEND_URLto the final Vercel domain.
- The backend currently supports an in-memory fallback when MongoDB is unreachable during development.
- In-memory submissions are temporary and disappear when the backend restarts.
- For production, use a working MongoDB connection string in Render.