Brief introduction:
This article is mainly based on what you have learned, to create a flask project, using sqlalchemy,alembic,mariadb,bootstrap,apscheduler,selenium,request ... Technology, created and deployed in Docker.
Should be maintained on GitHub, as a blueprint for writing flask projects later.
One: Install MARADB. 1. Run mariadb in Windows.
http://www.haosql.com/, it is recommended to download a green version of mariadb here.
Haosql, useful SQL.
The purpose of this program is only one: to simplify the installation process of the database, fool.
Free Install green version, size only about 10M, decompression can, pure green; start with just one click.
With Control Panel, with SQL management tools. Support Service non-service mode startup.
Support database: MongoDB, MySQL, PostgreSQL, MSSQL2008, MSSQL2000, Firebird, MariaDB.
Http://pic.guoxuedashi.com/HaoSQL/MariaDB-HaoSQL.zip
Download unzip, run directly on it.
2. Running MARIADB in Linux
Look at my blog should understand, I almost do not configure the Linux server, but not here to post a large section of the code to give you configuration.
I use Docker, a line of command to solve.
docker run --name some-mariadb -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb:tag
上面是官方给的例子
实际执行:
MYSQL_ROOT_PASSWORD=
123456 -d mariadb
Two: Configuration mariadb
FLASK Project Structure (i) mariadb