This project demonstrates how to build a stateless microservice using Flask, GitHub Copilot, and VS Code. For a detailed walkthrough, refer to my DZone article.
flask-stateless-microservice
├── app
│ ├── __init__.py
│ ├── routes.py
│ ├── models.py
│ └── templates
│ └── base.html
├── venv
├── requirements.txt
└── README.md
-
Clone the repository:
git clone <repository-url> cd flask-stateless-microservice -
Create a virtual environment:
python -m venv venv -
Activate the virtual environment:
- On Windows:
venv\Scripts\activate - On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
To run the application, use the following command:
flask run
Visit http://127.0.0.1:5000 in your web browser to view the application.
For more details on building stateless microservices, check out my DZone article.