An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

## Todos

## Get started
### Without Docker

1. 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
```