A cashier system for a Dormitory
A system to assist the cashier at a dormitory. It keeps track of transactions
and presents them in a web interface.
In the admin interface you can enter the rooms in the dormitory and the contact
info of the person living there. The admin interface can also be used to enter
transactions.
A summery of all rooms and transactions is then presented on the main page and
the transactions for a specific room can be seen on their overview page.
The system is coded in django and is setup
such that it can be easily deployed on a Heroku server.
To get a local version up and running perform the following steps.
3.6.1
).
$ pip install virtualenv
$ virtualenv -p `which python3` virtualenv
$ source virtualenv/bin/activate
$ pip install -r requirements.txt
$ ./manage.py migrate
$ ./maange.py createsuperuser
$ ./manage.py runserver
Once you have made an account on Heroku you can run
the following commands.
$ heroku login
$ heroku create # This step gives you a URL for the instance
$ git push heroku master
$ heroku run python manage.py migrate
$ heroku run python manage.py createsuperuser
You can now visit the URL shown in step two and login at something.heroku.com/admin
Pull requests are more than welcome, bonus point if the code conforms topylint
.
./mange.py test
To check if you new code is covered by tests you can run:This will create a
$ coverage run --source='.' manage.py test cashier
$ coverage html
htmlcov
directory where you can open the fileindex.html
docs
dir and typing make html