Skip to content

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.html in 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
      

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
  • Python Flask:
    • Add requirements.txt
    • Run with flask run or python app.py
    • Add a Procfile if needed:
      web: python app.py
      
  • Python Django:
    • Add requirements.txt and a Procfile:
      web: gunicorn myproject.wsgi
      
    • Set up ALLOWED_HOSTS
    • Run python manage.py migrate and collectstatic as needed

6. Deploy Fullstack

  • Fullstack deployment (frontend + backend):
    • Organize /client and /server folders
    • JavaScript:
      • Deploy frontend to Netlify/Vercel
      • Backend to Render/Railway
      • Use .env with VITE_API_URL
    • Python Flask/Django:
      • Serve frontend inside backend or separate
      • Ensure API and static routes work
  • 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 psycopg2 or pymongo
    • Django: configure DATABASES in settings.py
    • Load secrets from .env or environment variables

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