A web application using Flask.
# Clone the repository
git clone https://github.com/hdaojin/itnsa.git
cd itnsa
# Create a virtual environment
python3 -m venv .venv
# Activate the virtual environment (Linux, macOS)
source .venv/bin/activate
# Activate the virtual environment (Windows)
.venv\Scripts\activate
# Install the requirements
pip install -r requirements.txt
# Set the default configuration of the application
vim config.py
# Generate a secret key
python utils/gen_seckey.py
# Set the environment variables
cp .env_simple .env
vim .env
# Run the application
flask --app itnsa --debug run
Initialize the database using flask-migrate:
# flask --app itnsa db init
# flask --app itnsa db migrate -m "init"
flask --app itnsa db upgrade
Import the default data using the following commands:
flask --app itnsa init-app
flask --app itnsa add-admin