devsummit / backend

Backend for API and data
9 stars 7 forks source link

Read Me

setup instruction

Run On Docker

You can run the server on docker simply by running: *not in virtual environment

additional setup including migrations and seeding will be the same as setup instruction above by docker-compose exec bash web sh to get into the container environment. and server should be up on localhost:5000

Linting

Make sure flake-8 is installed on your env, by running make deps inside your env

Linting is achieved by integrating flake8.
You can check you PEP8 compliance by typing: make lint

Api Blueprint

We use hercule to compile the blueprints into single apib file. All the blueprints resided in /blueprint folder, the main file is blueprint.apib We also define the datastructure for all blueprint in sepearate apib files, resided in folder /blueprint/data. To compile the blueprint these all what we need tobe done:

    $ npm install -g hercule

Api Testing

    $ npm install -g dredd
    $ dredd