Severe weather case simulator
Run the following commands after cloning the project:
cd wxcs
python3 -m pipenv install -d
python3 -m pipenv shell
Then, run the following to create your app's database tables and perform the initial seeding:
flask db upgrade
flask seed
flask sync
flask run
CREATE VIEW v_toolsets AS
SELECT t.*, l.name, l.href
FROM toolsets AS t
JOIN links AS l ON t.link_id = l.id
In your production environment, make sure the FLASK_DEBUG
environment variable is unset or is set to 0
. In your .env
file:
FLASK_ENV=production
FLASK_DEBUG=0
DATABASE_URL="<PRODUCTION DATABASE URL>"
To open the interactive shell, run :
flask shell
By default, you will have access to the flask app
.
Whenever a database migration needs to be made. Run the following commands :
flask db migrate
This will generate a new migration script. Then run :
flask db upgrade
To apply the migration.
For a full migration command reference, run flask db --help
.
- Assets
- Icons: Images & Icons for frontend
- Logs: Appreciation logs
- Messages: Instruction & Guidance
- Configs: Seeds for Database setup
- Utils: Supportive functionalities for the website (BEWARE TO MODIFY)