- Docker
- Rails Api
- Postgis
- ReactJS
- **Web - Lists the nearest establishment of cafes by city location and Option to evaluate the establishment
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You must have installed on your machine:
- Docker
- Docker Compose
- NPM or Yarn
First step is to install the docker service:
#Linux: ubuntu,Mint
$ sudo apt-get update
$ sudo apt-get install docker-ce
$ sudo apt install docker-compose
# Fedora
$ sudo dnf update -y
$ sudo dnf install docker-ce
$ sudo dnf -y install docker-compose
For test if the service was installed with succeed, you can run the command for to check de version of docker:
$ docker --version
#Must be have the docker version: Docker version 18.06.0-ce
$ docker-compose --version
#Must be have the docker-compose version: docker-compose version 1.22.0
Follow the instructions to have a project present and able to run it locally. After copying the repository to your machine, go to the project's root site and:
- Construct the container
docker-compose build
- Created database and run migrate for project API
docker-compose run --rm app bundle exec rails db:create db:migrate
- Run the project API
docker-compose up - d
The api run in the port 3000 -http://localhost:3000
- Run the project Web
npm install or yarn install
npm start or yarn start
The Web run in the port 3001 -http://localhost:3001