Spaces:
Running
Running
| title: DeployMate Backend API | |
| emoji: ๐ | |
| colorFrom: indigo | |
| colorTo: blue | |
| sdk: docker | |
| sdk_version: "0.104.1" | |
| app_file: app.py | |
| pinned: false | |
| DeployMate Backend | |
| This is the backend service for DeployMate, built with FastAPI. | |
| ## Features | |
| - RESTful API with FastAPI | |
| - Automated testing, linting, and type checking via GitHub Actions | |
| - Docker support for containerized deployment | |
| ## Development | |
| ### Setup | |
| 1. Create and activate a virtual environment: | |
| ```bash | |
| python3 -m venv venv | |
| source venv/bin/activate | |
| ``` | |
| 2. Install dependencies: | |
| ```bash | |
| pip install -e .[dev] | |
| ``` | |
| 3. Run the development server: | |
| ```bash | |
| uvicorn app.main:app --reload | |
| ``` | |
| ### Testing | |
| Run all tests: | |
| ```bash | |
| pytest | |
| ``` | |
| ### Linting & Type Checking | |
| ```bash | |
| flake8 app/ tests/ | |
| mypy app/ | |
| ``` | |
| ### Docker | |
| Build and run with Docker: | |
| ```bash | |
| docker build -t deploymate-backend . | |
| docker run -p 8000:8000 deploymate-backend | |
| ``` | |