{"repo":"uwidcit/flaskmvc","free":true,"listed":false,"github":"https://github.com/uwidcit/flaskmvc","clone":"git clone https://github.com/uwidcit/flaskmvc.git","description":"A template for flask applications structured in the Model View Controller pattern.","language":"Python","stars":41,"topics":["flask","mvc","flask-sqlalchemy","flask-api","flask-restful","jwt"],"license":null,"category":"auth-billing-email","readme_excerpt":"Flask MVC Template A template for flask applications structured in the Model View Controller pattern Demo. Postman Collection Dependencies Python3/pip3 Packages listed in requirements.txt Installing Dependencies Configuration Management Configuration information such as the database url/port, credentials, API keys etc are to be supplied to the application. However, it is bad practice to stage production information in publicly visible repositories. Instead, all config is provided by a config file or via environment variables. In Development When running the project in a development environment (such as gitpod) the app is configured via default config.py file in the App folder. By default, the config for development uses a sqlite database. default config.py These values would be imported and added to the app in load config() function in config.py config.py In Production When deploying your application to production/staging you must pass in configuration information via environment tab of your render project's dashboard. Flask Commands wsgi.py is a utility script for performing various tasks related to the project. You can use it to import and test any code in the project. You just need create a manager command function, for example: Then execute the command invoking with flask cli with command name and the relevant parameters Running the Project For development run the serve command (what you execute): For production using gunicorn (what the production server executes): Deploy","default_branch":null,"files":null,"tree":[],"storefront":"/r/uwidcit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/uwidcit/flaskmvc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}