The application runs on:
- Ruby 2.3.x
- RubyGems
- Bundler gem
- Ruby on Rails 5
- MongoDB
- Mongoid 6
The application is configured to run with Docker. You need to have both Docker Engine and Docker Compose installed. Then build the application container and run it.
From the root path of the application, run:
docker-compose build
Wait for the build to be finished.
To create the databases and seed them, from the root path of the application, run:
docker-compose run web rake db:create
docker-compose run web rake db:seed
From the root path of the application, run:
docker-compose up
The application is up and running.
To access the application, go to http://localhost:3000
on your web browser.
You must have the following dependencies installed:
- Ruby 2.3.x
- RubyGems
- Bundler gem
- MongoDB
Conigure credentials for database access on config/mongoid.yml
file.
From the root path of the application, run:
bundle install
To create the databases and seed them, from the root path of the application, run:
bundle exec rake db:create
bundle exec rake db:seed
From the root path of the application, run:
bundle exec rails s
The application is up and running.
To access the application, go to http://localhost:3000
on your web browser.
GET /robots
GET /robots/:id
PUT/PATCH /robots/:id
{
robot: {
attributes: {
<attribute_name:String>: <attribute_value:String>,
<attribute_name:String>: <attribute_value:String>,
...
}
}
}
GET /robots/:id/histories