|
1 | 1 | # Flask-SQLAlchemy Tutorial |
2 | 2 |
|
3 | | - |
4 | | - |
| 3 | + |
| 4 | + |
5 | 5 |  |
6 | | - |
7 | 6 |  |
8 | 7 | [](https://github.com/hackersandslackers/flask-sqlalchemy-tutorial/issues) |
9 | 8 | [](https://github.com/hackersandslackers/flask-sqlalchemy-tutorial/stargazers) |
|
12 | 11 |  |
13 | 12 |
|
14 | 13 | Connect your Flask app to a database using Flask-SQLAlchemy. This repository contains source code for the accompanying tutorial on [Hackers and Slackers](https://hackersandslackers.com/manage-database-models-with-flask-sqlalchemy/). |
| 14 | + |
| 15 | +## Getting Started |
| 16 | + |
| 17 | +Installation is recommended with Pipenv: |
| 18 | + |
| 19 | +```shell |
| 20 | +$ git clone https://github.com/hackersandslackers/flask-sqlalchemy-tutorial.git |
| 21 | +$ cd flask-sqlalchemy-tutorial |
| 22 | +$ pipenv shell |
| 23 | +$ pipenv update |
| 24 | +$ python3 main.py |
| 25 | +``` |
| 26 | + |
| 27 | +Alternatively, try installing via `setup.py`: |
| 28 | + |
| 29 | +```shell |
| 30 | +$ git clone https://github.com/hackersandslackers/flask-sqlalchemy-tutorial.git |
| 31 | +$ cd flasksession-tutorial |
| 32 | +$ python3 setup.py install |
| 33 | +$ python3 main.py |
| 34 | +``` |
| 35 | +----- |
| 36 | + |
| 37 | +**Hackers and Slackers** tutorials are free of charge. If you found this tutorial helpful, a [small donation](https://www.buymeacoffee.com/hackersslackers) would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content. |
0 commit comments