Giter Site home page Giter Site logo

cwe's Introduction

Common Welfare Economy proof of concept

This is a proof of concept to show how to access to the information needed at the project "Common Welfare Economy" (aka Gemeinwohl-Ökonomie).

The project was developed with django and it is a very basic project that allows you to:

  • store information on the DB: companies, individual people, organizations & politicians.
  • access to this information via an API developed with tastypie.

Installation

Create a virtualenv, or install the packages system-wide with:

$ pip install -r requirements.txt

Creating DB

By default it will create a sqlite DB for you, feel free to change it on the settings.py file:

$ python manage.py syncdb

Usage

I will not explain here how to deploy a wsgi application :) But if you want to check the app with the dev server:

$ python manage.py runserver

Example of API

After run the server you can access to this URL: http://127.0.0.1:8000/api/v1/company?format=json and it will return to you this JSON format:

{"meta": {"limit": 20,
          "next": null,
          "offset": 0,
          "previous": null,
          "total_count": 1},
 "objects": [{"address": "Groningen",
              "employees": 70,
              "id": "1",
              "name": "Paylogic",
              "resource_uri": "/api/v1/company/1/",
              "url": "http://paylogic.nl/"}]
}

cwe's People

Contributors

agonzalezro avatar

Watchers

 avatar  avatar  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.