Skip to content
willy7890Public

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Combined Fullstack Structure (FastAPI + React)

One single project structure containing Backend + Frontend together (monorepo style).

All files contain only comments describing what each file should do. No real application code is written — you implement later.

Stack

  • Backend: FastAPI (Python) + Uvicorn
  • Frontend: React (Vite recommended)
  • Database: PostgreSQL / SQLite / MongoDB
  • Container: Docker + Docker Compose

Project Structure (moja kwa moja)

.
├── backend/                          # FastAPI Backend
│   ├── app/
│   │   ├── main.py                   # Entry point
│   │   ├── api/
│   │   │   ├── deps.py
│   │   │   └── api_v1/
│   │   │       ├── api.py
│   │   │       └── endpoints/
│   │   │           ├── auth.py
│   │   │           └── users.py
│   │   ├── core/
│   │   │   ├── config.py
│   │   │   └── security.py
│   │   ├── models/
│   │   ├── schemas/
│   │   ├── services/
│   │   ├── db/
│   │   └── utils/
│   ├── requirements.txt
│   ├── Dockerfile
│   └── .env.example
│
├── frontend/                         # React Frontend
│   ├── public/
│   ├── src/
│   │   ├── components/
│   │   ├── pages/
│   │   ├── services/
│   │   ├── hooks/
│   │   ├── context/
│   │   ├── utils/
│   │   ├── App.jsx
│   │   └── main.jsx
│   ├── index.html
│   ├── package.json
│   ├── Dockerfile
│   └── .env.example
│
├── docker-compose.yml                # Run backend + frontend together
├── .gitignore
└── README.md

How to use

  1. Unzip
  2. Implement logic following the comments inside each file
  3. Backend:
    cd backend
    python -m venv venv
    source venv/bin/activate   # Windows: venv\Scripts\activate
    pip install -r requirements.txt
    cp .env.example .env
    uvicorn app.main:app --reload
  4. Frontend:
    cd frontend
    npm install
    npm run dev
  5. Or run everything with Docker:
    docker-compose up --build

Notes

  • Backend runs on port 8000 (docs: http://localhost:8000/docs)
  • Frontend usually on port 3000 or 5173
  • Keep secrets in .env files (never commit them)
  • Every file has clear comments explaining its task

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages