This project is configured for seamless deployment on Vercel.
Production URL: https://learning-ai-tau.vercel.app/
- Frontend: Vite + React (
app/frontend) - Backend: Express.js (
app/Backend)
- Node.js (v18+)
- MongoDB (running locally or URI)
-
Clone the repository:
git clone <repository-url> cd Learning.ai
-
Backend Setup:
cd app/Backend npm install # Create .env file with MONGODB_URI, etc. npm start
-
Frontend Setup:
cd app/frontend npm install npm run devAccess the app at
http://localhost:5173.
The repository is configured with vercel.json to deploy both the frontend and backend in a single Vercel project.
- Connect your GitHub repository to Vercel.
- Import the project.
- Settings:
- Root Directory: Leave as
./(Repsoitory Root) - Framework Preset: Other (or Vercel default)
- Environment Variables: Add all backend secrets (e.g.
MONGODB_URI,JWT_SECRET) in the Vercel Project Settings.
- Root Directory: Leave as
- Deploy.
A GitHub Actions workflow (.github/workflows/ci.yml) is set up to automatically build and test your application on every push to main.