https://github.com/ifirmawan/todos-fastapi
Create simple REST API with FASTAPI
https://github.com/ifirmawan/todos-fastapi
deta fastapi fastapi-crud
Last synced: 2 months ago
JSON representation
Create simple REST API with FASTAPI
- Host: GitHub
- URL: https://github.com/ifirmawan/todos-fastapi
- Owner: ifirmawan
- Created: 2021-09-23T02:48:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-19T08:12:08.000Z (over 2 years ago)
- Last Synced: 2025-01-26T02:52:20.325Z (4 months ago)
- Topics: deta, fastapi, fastapi-crud
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Todos
## Get started
### Without Docker1. pip install fastapi
2. pip install "uvicorn[standard]"
3. uvicorn app.main:app --reload
4. enjoy!### With Docker
#### With docker-compose
```
docker-compose up -d
```
#### Without docker-compose
1. build this docker image
```
docker build -t todos-app .
```
2. run docker image with exposed port
```
docker run \
-e DETA_PROJECT_KEY="Your Deta project Key" \
-d --name todos-container \
-p 8000:8000 todos-app
```
3. enjoy!## Deployment
### Deploy to Deta
1. Go to app folder
```
cd app/
```
2. Login Deta account
> I recommended to use google chrome as default browser.
```
deta login
```
3. Deploy this project to Deta
```
deta deploy
```