Skip to content

Andrey-Ved/api_example

Repository files navigation

API example

Simple API on FastAPI

(python, FastAPI, SQLAlchemy, SQLite)


Api has two main endpoints:

  • save new note of current user
  • get all notes of current user


Implemented:

Interfaces

Launching in Docker

Create and start container:

$ docker-compose up

Stop lifted containers:

$ docker-compose stop

Start stopped containers:

$ docker-compose start

Stop and delete containers and network:

$ docker-compose down

Remove app image:

$ docker rmi notes_api

Clear logs:

$ sudo rm -rf logs/*