{"id":26831372,"url":"https://github.com/benjaminbwright/full-stack-fastapi-template","last_synced_at":"2025-08-24T22:50:12.516Z","repository":{"id":281076516,"uuid":"944057487","full_name":"benjaminbwright/full-stack-fastapi-template","owner":"benjaminbwright","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-06T20:55:32.000Z","size":8369,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T21:30:02.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benjaminbwright.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-06T18:00:28.000Z","updated_at":"2025-03-06T20:55:36.000Z","dependencies_parsed_at":"2025-03-06T21:42:05.215Z","dependency_job_id":null,"html_url":"https://github.com/benjaminbwright/full-stack-fastapi-template","commit_stats":null,"previous_names":["benjaminbwright/full-stack-fastapi-template"],"tags_count":0,"template":false,"template_full_name":"benjaminbwright/fastAPI-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminbwright%2Ffull-stack-fastapi-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminbwright%2Ffull-stack-fastapi-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminbwright%2Ffull-stack-fastapi-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjaminbwright%2Ffull-stack-fastapi-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benjaminbwright","download_url":"https://codeload.github.com/benjaminbwright/full-stack-fastapi-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246332374,"owners_count":20760468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-30T14:32:16.512Z","updated_at":"2025-03-30T14:32:17.072Z","avatar_url":"https://github.com/benjaminbwright.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full-Stack FastAPI and React Template\n\nA modern, production-ready template for building full-stack applications with FastAPI and React. This template provides a modular structure with Docker support for both development and production environments.\n\n## Features\n\n- 🚀 FastAPI backend for high-performance API development\n- ⚛️ React frontend with modern tooling\n- 🐳 Docker and Docker Compose support for development\n- 📦 Separate production-ready Dockerfiles for cloud deployment\n- 📁 Modular project structure for both frontend and backend\n- 🔍 Example TODO list CRUD implementation\n- 📝 Auto-generated API documentation (Swagger/OpenAPI)\n- ✨ Clean, maintainable architecture\n- 🔒 Type safety with Pydantic models and TypeScript\n\n## Quick Start with Docker (Development)\n\n### Prerequisites\n\n- Docker\n- Docker Compose\n\n### Development Setup\n\n1. Clone the template:\n\n   ```bash\n   git clone https://github.com/yourusername/full-stack-fastapi-template.git\n   cd full-stack-fastapi-template\n   ```\n\n2. Start the development environment:\n\n   ```bash\n   docker-compose up\n   ```\n\n3. Access the applications:\n   - Frontend: http://localhost:3000\n   - Backend API: http://localhost:8000\n   - API Documentation: http://localhost:8000/docs\n\n## Manual Setup (Without Docker)\n\n### Backend Setup\n\n1. Navigate to the backend directory:\n\n   ```bash\n   cd backend\n   ```\n\n2. Create and activate virtual environment:\n\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows: .\\venv\\Scripts\\activate\n   ```\n\n3. Install dependencies:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Run the backend:\n   ```bash\n   uvicorn main:app --reload\n   ```\n\n### Frontend Setup\n\n1. Navigate to the frontend directory:\n\n   ```bash\n   cd frontend\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Start the development server:\n   ```bash\n   npm run dev\n   ```\n\n## Project Structure\n\n```\nfull-stack-fastapi-template/\n├── docker-compose.yml          # Development Docker Compose configuration\n├── backend/\n│   ├── Dockerfile             # Production backend Dockerfile\n│   ├── Dockerfile.development # Development backend Dockerfile\n│   ├── main.py               # Application entry point\n│   ├── requirements.txt      # Python dependencies\n│   ├── models/               # Data models\n│   └── routes/               # API routes\n├── frontend/\n│   ├── Dockerfile           # Production frontend Dockerfile\n│   ├── Dockerfile.development # Development frontend Dockerfile\n│   ├── package.json\n│   ├── src/\n│   │   ├── components/      # React components\n│   │   ├── pages/          # Page components\n│   │   └── services/       # API services\n│   └── public/             # Static assets\n```\n\n## Production Deployment\n\nThe template includes separate Dockerfiles for production deployment of both frontend and backend services. This allows for independent scaling and deployment of each service in cloud environments.\n\n### Building Production Images\n\n1. Backend:\n\n   ```bash\n   docker build -t myapp-backend ./backend\n   ```\n\n2. Frontend:\n   ```bash\n   docker build -t myapp-frontend ./frontend\n   ```\n\n### Environment Variables\n\n- Backend:\n\n  - `DATABASE_URL`: Database connection string\n  - `SECRET_KEY`: Application secret key\n  - Additional environment variables as needed\n\n- Frontend:\n  - `REACT_APP_API_URL`: Backend API URL\n  - Additional environment variables as needed\n\n## API Endpoints\n\nThe template includes a complete TODO list API:\n\n- `GET /api/todos` - List all todos\n- `POST /api/todos` - Create a todo\n- `GET /api/todos/{id}` - Get a specific todo\n- `PUT /api/todos/{id}` - Update a todo\n- `DELETE /api/todos/{id}` - Delete a todo\n\n## Contributing\n\nWe welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details.\n\n## Development Guidelines\n\n### Backend\n\n- Follow PEP 8 guidelines\n- Use type hints\n- Write docstrings for functions and classes\n- Implement unit tests for new features\n\n### Frontend\n\n- Follow React best practices\n- Use TypeScript for type safety\n- Implement component tests\n- Follow the established project structure\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Getting Help\n\n- Check the [FastAPI documentation](https://fastapi.tiangolo.com/)\n- Visit the [React documentation](https://reactjs.org/)\n- Open an issue for bugs\n- Start a discussion for questions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminbwright%2Ffull-stack-fastapi-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjaminbwright%2Ffull-stack-fastapi-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminbwright%2Ffull-stack-fastapi-template/lists"}