项目作者: nodarai

项目描述 :
Convert currencies
高级语言: Python
项目地址: git://github.com/nodarai/cconverter.git
创建时间: 2019-10-09T21:40:33Z
项目社区:https://github.com/nodarai/cconverter

开源协议:

下载


Currency Converter with Django

Running the project

Clone the project

  1. git clone https://github.com/nodarai/cconverter

Create .env file with the necessary variables

Create and setup a virtualenv

  1. virtualenv -p python3.6 .venv
  2. source .venv/bin/activate
  3. pip install -r requirements.txt

Run the migrations to create a database and tables

  1. python manage.py migrate

Load the initial data

  1. python manage.py loaddata convert/fixtures/currencies.json

Run the celery beat

  1. celery -A cconverter beat -l debug

Run a celery worker

  1. celery -A cconverter worker -l debug

Run the project in development mode

  1. python manage.py runserver

Optionnally, create a superuser to access the admin interface

  1. python manage.py createsuperuser

And follow the instructions.
Django Admin interface will be available at http://localhost:8000/admin/

:warning: The documentation, alongside with interactive API will be available at http://localhost:8000/docs/