Kickstart your next flask project with clean-flask. Clean-Flask is a template which bundles a few vital components when it comes to modern web applications.
Flask
Flask is a super lightweight framework for web servers.
SQLAlchemy
SQLAlchemy is an Object-Relational-Mapper that supports SQLite, MySql, and much more.
webpack
Webpack is a bundler for your stylesheets and javascript. It comes with babel and some other neat packages like an autoprefixer for your scss files.
scss SCSS is a super cool preprocessor for your stylesheets.
eslint
Lints your javascript files.
login
This template comes with a simple, not safe login.
Clone or download this repository. Start your terminal and move into the root of this repository.
Backend
- Create a virtual env
python3 -m venv venv
- Install dependencies
pip3 install -r requirements.txt
- Create DB
python3 db_setup.py
- Create demo user
python3 demo_data.py
- Run server
python3 run.py
Frontend
- Install packages
npm i
- Start bundler
npm run watch
npm run lint-js
- Lints your javascript files via eslintnpm run watch
- Start webpack and watch filesnpm run build
- Build your assets files onceflake8 app
- Lint your python files via flake8