This project is a full-stack web application that predicts student depression levels using a machine learning model. It features a Next.js frontend and a Flask backend, deployed using Vercel and Railway respectively.
- 🧠 Machine Learning model for depression prediction
- 🌐 Frontend built with Next.js & Tailwind CSS
- 🐍 Backend API with Flask
- 📦 RESTful API connection between frontend and backend
- ☁️ Deployed on Vercel (frontend) and Railway (backend)
- Next.js (React)
- Tailwind CSS
- TypeScript
- Flask
- Flask-CORS
- scikit-learn, pandas, joblib (for model serving)
- Frontend: Vercel
- Backend: Railway
git clone https://github.com/valentypo/machine-learning.git
cd machine-learningcd src
npm install
# create .env.local file and add:
# NEXT_PUBLIC_API_URL=[https://your-backend-url/api](http://depression-learning-backend-production.up.railway.app)
npm run devcd server
pip install -r requirements.txt
python app.pyMake sure the backend runs on port 5000 or update the frontend's
.env.localaccordingly.
## 🌍 Deployment
- **Frontend deployed on Vercel:** https://machine-learning-mocha.vercel.app/
- **Backend deployed on Railway:** http://depression-learning-backend-production.up.railway.app
## ✨ Credits
Created by
[@Cavinee & @valentypo]