Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Latest commit

 

History

History
38 lines (29 loc) · 937 Bytes

File metadata and controls

38 lines (29 loc) · 937 Bytes

README

This is an example Rails application using Grape to define the API endpoints. Please see Gemfile for more details on requirements.

Installation

Using docker

In case you prefer to run the commands inside a docker container instead of on you host computer, these commands should get you started:

First you need to build the image:

docker build -t rubyapp .

Once this is completed, you can run the rspec tests:

docker run --volume "$PWD":/app:Z rubyapp bundle exec rspec

Alternatively you can also launch an interactive bash shell and execute the rspec tests from inside the container:

docker run -it --volume "$PWD":/app:Z rubyapp bash

To run the server, use the following command:

docker run --volume "$PWD":/app:Z -p 3000:3000 rubyapp