Giter Site home page Giter Site logo

hectorpatino / covid_colombia_drf Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 196 KB

A Very simple Rest API for covid cases in Colombia using Djangorestframework. Hosted on Heroku

Home Page: https://covid-rote-drf.herokuapp.com/

Python 100.00%
django django-rest-framework covid19-data

covid_colombia_drf's Introduction

Covid Colombia API

I created this simple api to show somethings I can do using python, alphanumeric and geospatial data. This api was created using django-rest-framework and real cases of coronavirus in Colombia. The api is hosted in heroku, so if you want to check the page it would take 30 secs aprox for the app to load, this is according to heroku settings. Unfortunaly Heroku doesnt allow postgis on free accounts, the main idea was that the api was capable of process points and give some information of that point; thats something I will correct in the future, perphaps migrating to another PaaS.

The data was migrated from csv's files to Postgres database using Spoon.

The API is hosted on: https://covid-rote-drf.herokuapp.com/ for swagger docs or https://covid-rote-drf.herokuapp.com/redoc/ for redoc docs.

If you wanna play with the api this are some of the users and passwords.

user password
user_one user_one_password
user_two user_two_password
user_three user_three_password

Features

  • The API uses jwt token to access some resources, so login is required.
  • It uses CBV's for easy resources generation.
  • The Database Engine is PostgreSQL.
  • The API also supports filtering, ordering, searching and pagination as query parameters in multiple resources.

Disclaimer

I think Automated testing it´s really important, since I learn some basic usage of Unittest I try to use it on regular bases, but this repository was created with the main idea of learning some basic and intermediate usage of drf. So with that in mind testing is a feature i will implemented in the future.

covid_colombia_drf's People

Contributors

hectorpatino avatar

Watchers

 avatar

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.