To set up the application, you need to have Python 3.11 and Poetry installed on your system.
After installing Python and Poetry, you need to clone the repository.
git clone https://github.com/LagrangeH/FlaskUserAuthSystem.git
After cloning the repository, you need to change the directory.
cd FlaskUserAuthSystem/
After cloning the repository, you need to create .env
-file and pass the environment variables.
cp src/flaskuserauthsystem/envs/.env.dist src/flaskuserauthsystem/envs/.env
Then pass these environment variables to .env
-file in src/flaskuserauthsystem/envs/
.
FLASK_DEBUG=false
FLASK_TEST=false
SQLALCHEMY_DATABASE_URI=sqlite:///main.db
RECAPTCHA_PUBLIC_KEY=
RECAPTCHA_PRIVATE_KEY=
After passing environment variables, you need to create virtual environment.
poetry env use python3.11
After creating the virtual environment, you need to install the dependencies.
poetry install
After installing the dependencies, you need to run the application.
poetry run flask run