Social API exercise created with FastAPI

- Register User
- Hash Password
- Create Post
- List Posts
- Create Comment in a Post by a User
- Like a post by a User (Many-to-Many Relationship)
- Project based on Test Driven Development
- Create JWT Token
- Validate JWT Token
- Protect create Post and Comments for non-logged users
- Models with pydantic
- Routes with APIRouter from fastapi
- SQLite as db
- Install dependencies from
requirement
file
$ pip install -r requirements.txt
python -m uvicorn main:app --reload
The project was developed considering the most coverage possible implementing TDD.
$ pytest