Bootstrapping tool (hack) for simple Flask backend API development
Copy the contents of .env.example
to {YOUR_PROJECT_ROOT}/.env
and set the values for the configuration variables
Managing database migrations:
flask db downgrade
# or
flask db upgrade
Run the application with the Flask development web server:
flask run
The application runs on localhost:5000
. You can access the API documentation
at http://localhost:5000/docs
.
- Move FlaskBasicAPI to another port:
- Start the server with the command
flask run --port=4000
.
- Start the server with the command