Giter Site home page Giter Site logo

backend's Introduction

Quick Start

Requirements

Basics

Install the required packages

$ pipenv install --dev

Set Environment Variables

$ cp .env.example .env

Generate a new APP_KEY

$ pipenv run python generate_key.py

Create DB

First you have to open pipenv shell

$ pipenv shell

If you don't have postgres installed, you can use Docker with Docker Compose to start a database container executing

$ docker-compose up -d db

Then you execute

$ python manage.py db init
$ python manage.py db upgrade

Get a dataset

You can download a .zip with all current supported datasets.

Feel free to try another dataset.

Run the Application

$ python manage.py runserver

So access the application at the address http://localhost:5000/

Want to specify a different port?

$ python manage.py runserver -h 0.0.0.0 -p 8080

Now you are ready to run the frontend project

Testing

Without coverage:

$ python manage.py test

With coverage:

$ python manage.py cov

backend's People

Contributors

chicobentojr avatar djdefi avatar felipemfp avatar gustavoguerino avatar jvaesteves avatar pedroven avatar tiagolisboa avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

adhv45

backend's Issues

Update README.md

Briefing

The idea is to have a README.md with instructions of how to run the project and substitute the CRA Usage Guide.

Tasks

  • Write README.md

Fix Dockerfile

Briefing

The current Dockerfile is failing to build.

Tasks

  • Fix Dockerfile

Add a ISSUE_TEMPLATE.md

Briefing

GitHub offers a way to create ISSUE_TEMPLATE.md that could be used for standardization.

We could have one like:

### Briefing
Brief description of this issue or feature.

### Tasks

- [ ] Task 1
- [ ] Task 2

Tasks

  • Create the ISSUE_TEMPLATE.md above

Setup CircleCI

Briefing

We will create some tests for the new API, but in the meantime we should configure Circle CI.

Tasks

  • Setup CircleCI

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.