- 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
}POSTinhttp://127.0.0.1:5000/signupa chosen login and password
{
"login": "letmecheckthisproject",
"password": "12345"
}-
POSTthe user you created inhttp://127.0.0.1:5000/loginand 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.
