This app i create it to practice on python flask.
what this project add to me:
- create invoice as pdf
- advanced things in sqlalchemy and database
to install and run the project:
-
if you don't have Python first install it and add it to the path then go to the next
-
install all modules in requirements.txt file in the project as:
- pip install -r requirements.txt
-
go to the project files open cmd there and type the following code in the console:
# open flask shell flask shell
# in python shell write that # to create the physical database import db from appname.db db.create_all()
-
create admin user to make you can login
-
from flask shell also
from Market.User import models from Market import by hashed_password = by.generate_password_hash("put your passsword").decode('utf-8') user = User(name="enter your name", password=hashed_password, admin=True) db.session.add(user) db.session.commit()
-
-
run the project
# open cmd and write py app.py