File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ Subproject commit cf3f5fc59c8a42db3ad40f0436c3353639933cd1
Original file line number Diff line number Diff line change 1+ - install virtualenv on ubuntu system
2+ ``` bash
3+ sudo apt-get install python3-venv
4+ ```
5+ - create virtualenv on system
6+ ``` sh
7+ python3 -m venv my-project-env
8+ ```
9+ - activate the environment
10+ ``` sh
11+ source my-project-env/bin/activate
12+ ```
13+ - deactivate enevironment when work is done
14+ ``` sh
15+ deactivate
16+ ```
17+ - install flask sqlalchamy for database
18+ ``` sh
19+ pip3 install flask-sqlalchemy
20+ ```
21+ ``` python
22+ from app import db
23+ db.create_all()
24+ ```
25+
26+ - Important Links /check sqlite file data online
27+ ```
28+ https://inloop.github.io/sqlite-viewer/
29+ https://flask-sqlalchemy.palletsprojects.com/en/2.x/quickstart/#simple-relationships
30+ ```
31+ - heroku deployment
32+ ``` py
33+ pip install gunicorn
34+ pip freeze > requirements.txt
35+ heroku login
36+ git init
37+ git add .
38+ git commit - m " messsage"
39+ heroku create todo- codewithkeshav
40+ git push heroku master
41+ ```
You can’t perform that action at this time.
0 commit comments