Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chhantyal/exchange
Currency exchange app between EURO and USD
https://github.com/chhantyal/exchange
Last synced: 3 months ago
JSON representation
Currency exchange app between EURO and USD
- Host: GitHub
- URL: https://github.com/chhantyal/exchange
- Owner: chhantyal
- License: bsd-3-clause
- Created: 2014-05-10T19:49:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-10T21:08:25.000Z (over 10 years ago)
- Last Synced: 2023-03-22T22:06:06.894Z (almost 2 years ago)
- Language: Python
- Size: 219 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.rst
Awesome Lists containing this project
README
exchange
==============================A simple currency exchange app :)
Install
-------Base requirements are::
* pip
* virtualenv
* PostgreSQLFirst make sure to create and activate a virtualenv::
$ pip install -r requirements/local.txt
You can now run the usual Django ``runserver`` command. Off course django setting module env
variable must be set::$ add2virtualenv .
$ echo "export DJANGO_SETTINGS_MODULE=uhura.config.settings" >> $VIRTUAL_ENV/bin/postactivate
$ python uhura/manage.py runserverCreate Postgres database with name ``uhura``::
$ create database uhura;
There is Postgres dump file ``uhura.sql``, which can be restored for testing purpose
$ psql -U [user] -d uhura -f uhura.sql
Celery and Celery Beat are used for periodic background jobs. To run celery::
$ python uhura/manage.py celery worker --loglevel=info -B
Other Details
-------------The exchange data is taken from http://quandl.com via API. The data is retrived and saved
to database.Periodic tasks run in background every day to update and sync the data. For that, distributed task
queue package ``celery`` is used, especially `Beat` feature which works like crontab in Unix.