/currencies

Primary LanguagePython


A Django App

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage

About The Project

We're a trading company and we love cryptocurrencies. We want to give feedback to our users about the value of their portfolios and for that we need to know the price of each cryptocurrency at any given time. For this we have developed a rest api that will be consumed by different applications, webs and mobiles.

(back to top)

Built With

(back to top)

Getting Started

Installation

This is an example of how to list things you need to use the software and how to install them.

  1. create a virtualenv
python3 -m venv currencies-env
  1. load virtualenv
source currencies-env/bin/activate
  1. clone this repo
git clone git@github.com:sanjmen/currencies
  1. change to repo
cd currencies
  1. install requirements
pip install -r requirements.txt
  1. migrate database
./manage.py migrate
  1. run server
./manage.py runserver
  1. in other terminal run celery
celery -A apps.taskapp worker -B -l INFO

(back to top)

Usage

  1. You can browse the api with the browser

  2. You can consume it with curl or using your favourite http client

(back to top)