Skip to content

Raniita/wizether_webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WizeTher App

Extensions used

  • Flask
  • Flask-Login
  • Flask-Manager
  • Flask-WTF
  • Flask-SQLAlchemy
  • Flask-Admin (Endpoint: /admin only for role = admin)

How to start the app

python main.py run

Task to migrate/update/rebuild database

  • Init the migration: python main.py db init
  • Create the migrate script: python main.py db migrate --message 'Initial database migration
  • Apply the migration (update the model): python main.py db upgrade

How to start a worker for the Tasks

python main.py run_worker

Environments Vars

  • FLASK_ENV: Default: production
  • SECRET_KEY: Default: flask-template
  • ADMIN_EMAIL: Default: example@mail.es
  • ADMIN_NAME: Default: rani
  • ADMIN_PASSWORD: Default: 654321
  • MYSQL_USER: Default: root
  • MYSQL_PASSWORD: Default: root
  • MYSQL_HOST: Default: localhost
  • MYSQL_DATABASE: Default: db
  • REDIS_HOST: Default: redis
  • REDIS_PORT: Default: 6379

Setting FLASK_ENV

If FLASK_ENV is different to production, the DevelopmentConfig is loaded. Thats means thats the app its using SQLITE for the database, otherwise will be using MYSQL

About

Python Flask webapp for Wizether Project [Hackathon Allwize 2021]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published