-
Python 3.7 - Follow instructions to install the latest version of python for your platform in the python docs
-
Virtual Environment - I recommend working within a virtual environment whenever using Python for projects. This keeps your dependencies for each project separate and organized. Instructions for setting up a virtual environment for your platform can be found in the python docs
-
PIP Dependencies - Once your virtual environment is setup and running, install the required dependencies by running:
pip install -r requirements.txt
- Flask is a lightweight backend microservices framework. Flask is required to handle requests and responses.
From within the ./src
directory first ensure you are working using your created virtual environment.
To run the server, execute:
export FLASK_APP=app.py
export FLASK_DEBUG=development
flask run --reload
The --reload
flag will detect file changes and restart the server automatically.
GET '/'
- Fetches a dictionary
- Request Arguments: None
- Returns: An object with keys,
age, backend, bio, slackUsername
, that contains an object ofcategory: data
key: value pairs.
{
"age": 23,
"backend": true,
"bio": "My name is Richard Olaoluwa Akintola, a Full Stack Developer",
"slackUsername": "laolu"
}