Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.
/ wolf Public archive

OATH tokenizer for banking purposes.

Notifications You must be signed in to change notification settings

Carrene/wolf

Repository files navigation

Wolf

Mobile-Token 2.x tokenizer

Gitter

alt text

branches

master

Build Status Coverage Status

nightly

Build Status Coverage Status

Setting up development Environment on Linux

Installing Dependencies

sudo apt-get install libpq-dev postgresql build-essential redis-server \
    redis-tools

Installing Python

We need Python 3.6.1 or higher. Install it using this instruction.

Installing Project (edit mode)

So, your changes will affect instantly on the installed version

wolf and oath.cy

pip install cython
git clone [email protected]:Carrene/oath.cy.git
cd oath.cy
pip install -e .
cd path/to/wolf
pip install -e .

For running tests, you should install development requirements too:

pip install -r requirements-dev.txt

Configuration

Create a file named ~/.config/wolf.yml

db:
  url: postgresql://postgres:postgres@localhost/wolf_dev
  test_url: postgresql://postgres:postgres@localhost/wolf_test
  administrative_url: postgresql://postgres:postgres@localhost/postgres
   
   

Remove old abd create a new database TAKE CARE ABOUT USING THAT

wolf db create --drop --basedata --mockup

Drop old database: TAKE CARE ABOUT USING THAT

wolf [-c path/to/config.yml] db drop

Create database

wolf [-c path/to/config.yml] db create

Or, you can add --drop to drop the previously created database: TAKE CARE ABOUT USING THAT

wolf [-c path/to/config.yml] db create --drop

Create database objects

wolf [-c path/to/config.yml] db schema

Database migration

wolf migrate upgrade head

Insert Base data

wolf [-c path/to/config.yml] db basedata

Insert Mockup data

wolf db mockup [count[prefix]]
wolf [-c path/to/config.yml db mockup 200 01

Runnig tests

pytest

Serving

Using python builtin http server

wolf [-c path/to/config.yml] serve

Gunicorn

./gunicorn

About

OATH tokenizer for banking purposes.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages