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

https://github.com/tireon003/kode_notes_api

It's a project of test task by Kode. Notes API implementation.
https://github.com/tireon003/kode_notes_api

alembic assignment fastapi jwt-auth pyaspeller python3 rest-api sqlalchemy-orm

Last synced: 10 months ago
JSON representation

It's a project of test task by Kode. Notes API implementation.

Awesome Lists containing this project

README

          

## Test task by Kode

### Description
It is a simple app with API and Postgres implementation.
API based on FastAPI. Functionality:
- Sign up
- Log in
- Add new note
- Show notes list

API interacts with DB on Postgres by SQLAlchemy ORM.
Implemented Alembic migrations.
API has an authorization and authentication system based on JWT.
Passwords are secured by encryption and hashed storing in DB.
Each note spelling before add to DB. Thus, notes haven't mistakes in its title and content parts.

### Stack
- FastAPI
- SQLAlchemy ORM
- Alembic
- Docker & docker-compose

### How to build and run?

#### Build:
```commandline
docker-compose build
```

#### Run (background):
```commandline
docker-compose up -d
```

#### Stop:
```commandline
docker-compose stop
```

## Tests

You can test API in Postman using Postman collections. JSON-collection in project directory.