Giter Club home page Giter Club logo

free_fair's Introduction

free fair

Codacy Badge Build Status Codacy Badge Code style: black

Requirements

Environment

  • export PIPENV_VENV_IN_PROJECT=1
  • pipenv --python 3.6
  • pipenv shell
  • make install-requirements-dev
  • python manage.py migrate

Execute project

  • Pre populate database python manage.py loaddata dump_free_fair.json with data from the city hall

  • Run server python manage.py runserver

  • Access http://localhost:8000/v1 to list urls api

Docs api

Access http://localhost:8000/docs/ to list documentation api

Import CSV to database

  • run python manage.py shell
  • from apps.core.scripts.import_csv_to_database import insert_csv_to_databse
  • insert_csv_to_databse('path_file')

Execute test

Execute tests and generate docs coverage in folder htmlcov

  • make test

Acesse folder htmlcov to show coverage docs

Check pep8 formatter test

  • make pep8

Formatter formatter code

  • make formatter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.