Guide for solutions
Updated on May 19, 2025
1. Prerequisites
- Install Git from git-scm.com
- Create a GitHub, GitLab or Bitbucket account
- Use a code editor (e.g. Visual Studio Code)
- Ensure the project runs locally:
- HTML/CSS: open
index.htmlin the browser - JavaScript (Vite/React):
Bash
npm install npm run dev - Python Flask:
Bash
pip install -r requirements.txt flask run # or python app.py - Python Django:
Bash
pip install -r requirements.txt python manage.py runserver
- HTML/CSS: open
3. Using Git
- Initialize a Git repository:
Bash
git init git add . git commit -m "Initial commit" - Create an online repository (GitHub, GitLab, Bitbucket)
- Connect and push your code:
Bash
git remote add origin <repo-url> git branch -M main git push -u origin main
4. Deploy Frontend
- Recommended platforms:
- Netlify – easy for Vite, React, HTML/CSS
- Vercel – great for Next.js or React
- GitHub Pages – for static projects
- Steps:
- Connect your repository
- Add the build command (
npm run build) - Choose output folder (
dist,build) - Deploy and get a public link
5. Deploy Backend
- Backend hosting options:
- Render, Railway, Fly.io
- JavaScript (Express):
- Add to
package.json:JSON"scripts": { "start": "node server.js" } - Use
process.env.PORT
- Add to
- Python Flask:
- Add
requirements.txt - Run with
flask runorpython app.py - Add a
Procfileif needed:web: python app.py
- Add
- Python Django:
- Add
requirements.txtand aProcfile:web: gunicorn myproject.wsgi - Set up
ALLOWED_HOSTS - Run
python manage.py migrateandcollectstaticas needed
- Add
6. Deploy Fullstack
- Fullstack deployment (frontend + backend):
- Organize
/clientand/serverfolders - JavaScript:
- Deploy frontend to Netlify/Vercel
- Backend to Render/Railway
- Use
.envwithVITE_API_URL
- Python Flask/Django:
- Serve frontend inside backend or separate
- Ensure API and static routes work
- Organize
- Test end-to-end connections
7. Host a Database
- Free database options:
- Supabase, MongoDB Atlas, Railway, PlanetScale
- JavaScript:
- Use Prisma (PostgreSQL) or Mongoose (MongoDB)
- Store credentials in
.env
- Python Flask/Django:
- Flask: use
psycopg2orpymongo - Django: configure
DATABASESinsettings.py - Load secrets from
.envor environment variables
- Flask: use
8. Final Checklist
- Final checklist:
- Public repository exists
- App is deployed (frontend + backend)
- Database is working and connected
- All features tested successfully
- Share your project and repository links