Code Climate Issue Count

Mexico Zipcodes

Mexico zipcodes micro service with NodeJS & MongoDB using HapiJS framework.

Data taken from the Mexico postal service (SEPOMEX).

Data as of: April 2017

You can find and already hosted version of the api here: http://mexico-zipcodes.herokuapp.com/

http://mexico-zipcodes.herokuapp.com/zipcode/03100

Table Of Contents

Search Types

By Zipcode

By State

By Colony

By Municipality

By Zone Type

All search terms have case-insensitive and RegExp search (not accent insensitive, though)

Pagination

Add at the end of the url:


Setup

Use instructions below to setup the repo and run the project:

Dependencies

The following dependencies are required to setup and run this project locally:

1. Clone The project

2. Setup database indexes

From shell run once:

3. Install node_modules

4. Populate database

If you are in a Linux/Unix shell

5. Run the service

Service: localhost:5899/zipcode/03100