This is a sample Flask project built for Flask teaching purposes.
-
Clone the repository:
git clone https://github.com/kawazaki0/sample_flask.git cd sample_flask -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Set environment variables:
export FLASK_SKIP_DOTENV=1 # on Windows use `set FLASK_SKIP_DOTENV=1`
-
Run the Flask application:
python sample_flask/app.py
-
Open your web browser and go to
http://127.0.0.1:5000/.
Run the tests:
pytestThis project is licensed under the MIT License.