/city_state_connect

Register cities and states.

Primary LanguageRuby

City State Connect

City State Connect is an application to create or import and consult states and cities.

To import the locales, the app integrates with IBGE api.

Pre-requisites

Starting the application

  • After cloning the repository, copy and paste the following command on your terminal:
$ docker compose up

Setting up the database

  • Copy and paste the following commands on your terminal:
$ docker ps
$ docker exec -it <CONTAINER_ID> rails db:create
$ docker exec -it <CONTAINER_ID> rails db:migrate
$ docker exec -it <CONTAINER_ID> rails db:seed

Running tests

  • Open a new terminal tab and copy and paste the following command:
$ docker exec -it <CONTAINER_ID> rspec

Acessing application

or