ROR API to that returns ZIP codes info.
Mexico-zip-codes is an API built with Ruby on Rails using the MVC architecture. The API allows users to see postal code details from all specific zip code they'd like.
http://localhost:3000/api/v1/zip-codes/postal_code_number
The API will show the postal code info whether exists, in the other hand, it will show an empty hash with a 404 Not found response.
- Major languages: Ruby
- Frameworks: ROR
- Gems: RSpec
- Swagger
To get a local copy up and running follow these simple example steps.
You need to have followings installed in your local machine:
Ruby
Postgresql
Rails
RSpec
Open your termnial and run the following command:
git clone https://github.com/AlexRS90/zip-codes.git
- cd zip-codes
- bundle install
- rails db:create
- rails db:migrate
- rails db:seed
rails s
Open your browser and type the following URL http://localhost:3000/
Finally you can see 5 random messages, to change it just refresh your browser. Enjoy!
- To run tests for current app, please run below commands in your terminal:
- rspec
👤 Alejandro Ramos
- GitHub: @AlexRS90
- Twitter: @AlejandroRBenji
- LinkedIn: @AlexRS90
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Mexico Postal Service
This project is MIT licensed.