Giter VIP home page Giter VIP logo

publishers-service-area's Introduction

Mojio Publishers Service Areas

This is a sample project defining publishers and the service areas associated with them. A publisher can have multiple service area associated with them. A service area is basicaally a geoJSON polygon defined for the given publisher.

This is a test only assignment. So many basic things have been omitted to save time. We are currently using sqlite as db. However settings for mySQL are configured and can be used anytime too.

Instead of using elastic search as the backend , we have a simple configuration to use haystack plain backend. Though settings can be modified anytime too to use elastic search node too.

The application is defined to be run behind nginx where it will speak to gunicorn app server. The service will run in background as systemctl. Extensive monitoring of service to report outage is currently not implemented here.

The basic test cases of modules are written. Extensive test cases have been omitted currently.

To use the application: Go to: mojio.assignment.io/docs and start hitting the apis.

Currently very basic apis are written and no authentication exists of them. (This is to be a serious miss. This will be implemented later.)

Extensive documentation for the apis can be found in the /docs. The documentation can also be used to test the apis written.

Local Setup

  • Make the directories for storing logs mkdir -p /var/log/mojio/django-logs mkdir -p /var/log/mojio/mojio
  • Go to the project directory and create virtualenv using the command virtualenv --python=`which python2` mojio_env
  • Install the project requirements using the command pip install -r requiremnts.txt
  • Run the migrations using the command python manage.py migrate
  • Start the server using the command python manage.py runserver

Currently the server in aws can be accessed from http://52.34.41.77/docs. This page can be also used for testing. A DNS is being set up.

publishers-service-area's People

Contributors

manishrocksag avatar

Watchers

 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.