A simple Pyramid app for listing and displaying expenses.
Authors:
- Nicholas Hunt-Walker (nhuntwalker@gmail.com)
- the class of Code Fellows Python 401d5
/- 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
-
Clone this repository to your local machine.
-
Once downloaded,
cdinto theexpense_trackerdirectory. -
Begin a new virtual environment with Python 3 and activate it.
-
cdinto the nextexpense_trackerdirectory. It should be at the same level ofsetup.py -
pip installthis package as well as thetestingset of extras into your virtual environment. -
$ initialize_db development.inito initialize the database, populating with random models. -
$ pserve development.ini --reloadto serve the application onhttp://localhost:6543
- If you have the
testingextras installed, testing is simple. If you're in the same directory assetup.pytype the following:
$ py.test expense_tracker