This repository is backend API on SearchShopApp,which can find nearby restaurants.
Name | Version | What | |
---|---|---|---|
backend | ruby | 2.6.3 | High-level languages |
Ruby on Rails | 5.1.7 | Web FrameWork | |
DB | Postgresql | 11.5 | database |
The following procedure, please install Docker For Mac or Docker For Windows
https://docs.docker.com/install/
$ git clone https://github.com/katsuomi/SearchShopApp-backend.git
$ cd SearchShopApp-backend
The following procedure, start the container.
# Create Docker image
$ docker-compose build
# Run Docker container
$ docker-compose up
# create DB
$ docker-compose exec backend rails db:create
# migration
$ docker-compose exec backend rails db:migrate
# test
$ docker-compose exec backend rspec
# confirm
$ docker-compose ps
If the following local server started, it's ok.
host | |
---|---|
backend | http://localhost:3000 |
swagger | http://localhost:3001 |
db | tcp:5432 |