##Documentation
The project documentation is available [here](Documentación Entrega 1.pdf). It contains the system's description, diagrams of the different processes implemented.
The API documentation is available here, with the different routes that we provide, the definitions of their parameters and information on what they return.
- You must have Ruby installed (v>2.0.0)
- You must have installed the bundler gem (else
gem install bundler
) - You must have MySQL installed and running
- You must have ImageMagick installed
- Clone the project on your computer
- Open a console in the folder of the project
- Run
bundle install
(if it doesn't try updating bundler by runninggem update bundler
) - Copy the
config/database.yml.dist
andconfig/secrets.yml.dist
removing the.dist
extension - Verify the credentials in
config/database.yml
so that they match those of your MySQL installation - Ask a member of the group for the
application.yml
file to get the needed environment variables settings - Run
rake db:create
- Run
rake db:migrate
If everything went well for the installation, you only have to run rails server
in your console.
Deployment is done in two steps. A verification step on the development platform before actually deploying to the production platform when the new code has been tested.
To deploy follow these steps:
- Open a console in the folder of the project
- Run
bundle exec cap <environment> deploy
where environment can bedevelopment
orproduction
following to which platform you want to deploy - Check that everything is working on the platform you've deployed to.
- If anything went wrong, run
cap <environment> deploy:rollback
to return to the previous version