Expense Tracker
A simple Pyramid app for listing and displaying expenses.
Authors:
- Nicholas Hunt-Walker (nhuntwalker@gmail.com)
- the class of Code Fellows Python 401d5
Routes:
/
- the home page and a listing of all expenses/new-expense
- to create a new expense/expense/{id:\d+}
- the page for an individual expense/expense/{id:\d+}/edit
- for editing existing expenses/expense/{cat:\w+}
- list all expenses by category
Set Up and Installation:
-
Clone this repository to your local machine.
-
Once downloaded,
cd
into theexpense_tracker
directory. -
Begin a new virtual environment with Python 3 and activate it.
-
cd
into the nextexpense_tracker
directory. It should be at the same level ofsetup.py
-
pip install
this package as well as thetesting
set of extras into your virtual environment. -
$ initialize_db development.ini
to initialize the database, populating with random models. -
$ pserve development.ini --reload
to serve the application onhttp://localhost:6543
To Test
- If you have the
testing
extras installed, testing is simple. If you're in the same directory assetup.py
type the following:
$ py.test expense_tracker