https://github.com/tsar123/web-api
mini educational project
https://github.com/tsar123/web-api
Last synced: 3 months ago
JSON representation
mini educational project
- Host: GitHub
- URL: https://github.com/tsar123/web-api
- Owner: tsar123
- Created: 2023-12-21T13:05:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-25T10:26:42.000Z (over 1 year ago)
- Last Synced: 2025-01-20T17:26:15.171Z (5 months ago)
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Web API
# Deploy for localhost 
1. Create virtualenv
```
python -m venv [path to venv folder]
```2. Activate virtualenv
```
.\venv\Scripts\activate (for Windows)
source env/bin/activate (for Linux)
```3. Install requirements
```
pip install -r requirements.txt
```4. Run fastAPI server
```
uvicorn main:app --reload
```# Deploy for server 
1. Run Docker container
```
docker-compose up fast -d --build
```