$ git clone https://github.com/jrajmundtest/edu.git
$ cd edu
$ python3 -m venv venv
$ source venv/bin/activate
(venv)$ pip install -U pip
(venv)$ pip install wheel eggs
(venv)$ pip install -r requirements
(venv)$ export SECRET_KEY='your secret key'
(venv)$ export DATABASE_URI='mysql+pymysql://mysqluser:mysqlpassword@localhost/mysql_db'
(venv)$ export TEST_DATABASE_URI='mysql+pymysql://mysqluser:mysqlpassword@localhost/mysql_testdb'
(venv)$ export PRODUCTION_DATABASE_URI='mysql+pymysql://mysqluser:mysqlpassword@localhost/mysql_proddb'
(venv)$ export ENVIRONMENT='your environment'
(venv)$ python manage.py db init
(venv)$ python manage.py db migrate
(venv)$ python manage.py db upgrade
(venv)$ flask shell
>>>from app.models import User
>>>from app import db
>>>testuser=User(username="testuser",password="testpassword")
>>>db.session.add(testuser)
>>>db.session.commit()
>>>quit()
(venv)$ python run.py
-
Notifications
You must be signed in to change notification settings - Fork 0
och6z/edu
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published