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.
- install docker
- After cloning the repository, copy and paste the following command on your terminal:
$ docker compose up
- 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
- Open a new terminal tab and copy and paste the following command:
$ docker exec -it <CONTAINER_ID> rspec
- http://localhost:3000 on browser (frontend application)
or
- install postman and import the postman collection to send requests (api)