Initialize Repo

This commit is contained in:
Pratyush Desai 2021-10-26 13:09:00 +05:30
commit 01f03e5d4a
Signed by: pratyush
GPG Key ID: DBA5BB7505946FAD
7 changed files with 43 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
venv
.vscode
.env

0
README.rst Normal file
View File

25
flaskr/__init__.py Normal file
View File

@ -0,0 +1,25 @@
import os
from flask import Flask
app = Flask(__name__)
def create_app(test_config=None):
app = Flask(__name__, instance_relative_config=True)
app.config.from_mapping(
SECRET_KEY='dev',
DATABASE=os.path.join(app.instance_path, 'flaskr.sqlite'),
)
if test_config is None:
# load the instance config, if it exists, when not testing
app.config.from_pyfile('config.py', silent=True)
else:
# load the test config if passed in
app.config.from_mapping(test_config)
# ensure the instance folder exists
try:
os.makedirs(app.instance_path)
except OSError:
pass

1
flaskr/config.py Normal file
View File

@ -0,0 +1 @@
import os

0
flaskr/db.py Normal file
View File

14
requirements.txt Normal file
View File

@ -0,0 +1,14 @@
click==8.0.3
Flask==2.0.2
flask-marshmallow==0.14.0
Flask-SQLAlchemy==2.5.1
greenlet==1.1.2
itsdangerous==2.0.1
Jinja2==3.0.2
MarkupSafe==2.0.1
marshmallow==3.14.0
psycopg2==2.9.1
six==1.16.0
SQLAlchemy==1.4.26
webargs==8.0.1
Werkzeug==2.0.2

0
tests/test.py Normal file
View File