##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.distandconfig/secrets.yml.distremoving the.distextension - Verify the credentials in
config/database.ymlso that they match those of your MySQL installation - Ask a member of the group for the
application.ymlfile 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 serverin 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> deploywhere environment can bedevelopmentorproductionfollowing 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:rollbackto return to the previous version