Skip to content

js-krinay/service-provider-locator

Repository files navigation

Service Provider Locator

The project contains supervisor config file and gunicorn bash which were used to host the application.

What does the application do?

This application has APIs to create, retrieve, update and delete companies. Each company can create, retrieve, update and delete service areas using geo_json. Application can also search which service_area offers service to a particular geo_json Point provided the latitude and longitude. To perform update, delete company and operations on service area one would need access token which can only be rendered from successful login.

Tech

MozioProject uses a number of open source projects to work properly:

  • Python - Python is an easy to learn, powerful programming language!
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Django Rest Framework - Django REST framework is a powerful and flexible toolkit for building Web APIs.
  • Shapely - Manipulation and analysis of geometric objects in the Cartesian plane.
  • Psycopg - PostgreSQL database adapter for Python
  • Redis - Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.

And of course MozioProject itself is open source with a public repository on GitHub.

Installation

Service Provider Locator requires Python3.6 or above to run.

Clone the repo
$ virtualenv -p python3 venv      # Create virtualenv
$ source venv/bin/activate        # Activate virtualenv
$ pip install -r requirements.txt # Install python modules
Edit database settings in mozio/settings.py
$ python manage.py migrate

Run Server

Start Redis
Activate virtualenv
$ python manage.py runserver [IP]:[PORT]

Postman Collection Link

Here is a link to postman collection: Postman

About

As ABC expands internationally, we have a growing problem that many transportation suppliers we'd like to integrate cannot give us concrete zipcodes, cities, etc that they serve. To combat this, we'd like to be able to define custom polygons as their "service area" and we'd like for the owners of these shuttle companies to be able to define and …

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors