This is an expenditure tracking application that allows authentication, add, delete and edit Spendings. Also displays a graph and chart with your expenses.
Bootstrap
Python
Flask
- Python3
- Virtual environment
- bootstrap
- flask
$ git clone https://github.com/benjaminbills/budgetapp
$ cd user-story
$ code .
## Setting up the virtual environment and activating it
$ python -m venv <name of virtual environment>
$ source <name of virtual environment>/bin/activate
## Install flask and modules needed using requirements.txt
$ pip3 freeze install -r requirements.txt
-
Create a file and name it start.sh
-
in the file add this
export SECRET_KEY=<you api key> python3 manage.py server
On your terminal run
$ chmod +x start.sh
$ ./start.sh
$ python3 manage.py test
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
app = Flask(__name__)
app.config['SECRET_KEY'] = "9ebb252dc447cf82fb0490410ab36c2a"
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///blog.db'
db = SQLAlchemy(app)
bcrypt = Bcrypt(app)
login_manager = LoginManager(app)
login_manager.login_view = 'login'
login_manager.login_message_category= 'info'
from app import views