To install and run the SeTicket project locally, please follow these steps:
1.Clone the repository from GitHub:
git clone https://github.com/cf15-t5/seticket-backend.gitNavigate to the project directory:
cd seticket-backendcraete venv and activate venv
python3 -m venv venv # on Windows, use "python -m venv venv" instead
. venv/bin/activate # on Windows, use "venv\Scripts\activate" insteadInstall the project dependencies using a package manager such as pip:
pip install -r requirement.txtCopy example environment file to new file
cp .env.example .envConfigure .env
To run this project, you will need to add the following environment variables to your .env file
DATABASE_URL
BASE_URL
DEBUG
PORT
JWT_ACCESS_TOKEN_EXPIRES
JWT_ACCESS_TOKEN_SECRET
JWT_ACCESS_TOKEN_ALGORITHM
PORT
MAIL_SERVER
MAIL_PORT
MAIL_USERNAME
MAIL_PASSWORD
MAIL_USE_TLS
MAIL_USE_SSL
for setup the email service, you must configure email and app password in .env, for get the app password you can stup 2fa first in your email and inside 2fa on bottom you get the app password
export FLASK_APP on windows
set FLASK_APP=main.pyor on (mac/linux)
export FLASK_APP=main.pyrun the migration
flask db upgradeRun the development server.
flask runor
flask --app=main.py runAccess the website locally at http://localhost:5000.