- Create virtual environment with Python 3.7
virtualenv -p python3.7 venv
- Activate virtual environment
source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Run the application
python app.py
{
"id": 94839485,
"name": "Jeremy Bentham",
"reviews": 3.6
}
POST
inhttp://127.0.0.1:5000/signup
a chosen login and password
{
"login": "letmecheckthisproject",
"password": "12345"
}
-
POST
the user you created inhttp://127.0.0.1:5000/login
and get the generated token -
When performing CRUD, put the token in the header with "Bearer" right before it
Use a tool like Insomnia or Postman to hit the endpoints and test it.