viniciussslima / b2bit-mini-twitter

REST API for users publish posts and see other users' publications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

b2bit-mini-twitter

Technologies

Use cases

  • CASE 1: User registration The actor registers in the system through the API. As a user, he must be able to register, so that he has access to Login. Use the fields you think are necessary for the user model definition.

  • CASE 2: Authentication (Login) The actor must be authenticated in the system through a Token. As a user, he must be able to log in, so that he has access to the system. This token must have an expiration date.

  • CASE 3: Make a publication The actor creates a post. This publication is persisted in the system. As a user, he must be able to create a publication, so that it can be seen by other users of the system.

  • CASE 4: General feed The actor must receive, in JSON format, the feed of the last 10 posts.

Start database

$ docker-compose up -d

Env variables

Create a .env file on the project root folder, use example.env file as a base.

Run project

  • Install dependencies
    • $ poetry install
  • Start shell with the virtual environment
    • $ poetry shell
  • Run migrations
    • $ manage migrate
  • Run tests
    • $ manage test
  • Start server
    • $ manage runserver

About

REST API for users publish posts and see other users' publications.

License:MIT License


Languages

Language:Python 99.3%Language:Shell 0.7%