Skip to content

CheeseCake87/flask-imp

Repository files navigation

Flask-Imp

Tests

What is Flask-Imp?

Flask-Imp's main purpose is to help simplify the importing of blueprints, resources, and models. It has a few extra features built in to help with securing pages and password authentication.

Getting Started

Setup.

Create a new project folder and navigate to it.

# Linux
cd /path/to/project-folder

# Windows
cd C:\path\to\project-folder

Create a virtual environment and activate it.

Linux / MacOS

python3 -m venv venv
source venv/bin/activate

Windows

python -m venv venv
.\venv\Scripts\activate

Install Flask-Imp

pip install flask-imp

Create a new project.

flask-imp init

Working on this project.

Setup.

Create a new project folder and navigate to it in the terminal, then clone this repository.

git clone https://github.com/CheeseCake87/Flask-Imp.git

Create a virtual environment and activate it.

Linux / MacOS

python3 -m venv venv
source venv/bin/activate

Windows

python -m venv venv
.\venv\Scripts\activate

Install the requirements.

pip install -r requirements.txt
pip install -r requirements_dev.txt

Install the local version of Flask-Imp.

pip install -e .

Run the Flask app.

Flask run

Run the tests.

pytest

Info

The Flask app is located in the app folder. The tests are located in the tests folder.

The tests are linked to the tests blueprint located at app/blueprints/tests.