This is the (future) backend part of the image upload website Stockme (name subject to change).
It's a simple rails 5 api application, developed and tested with Ruby v2.4.0, older versions should probably work but there's no guarantee. (Rails 5 needs at least v2.2.2).
Note: This project is part of my 12 Months / 12 Side Projects.
- Imagemagick
- Clone repository
- Copy
config/database.yml-dist
toconfig/database.yml
and configure your database cf Rails documentation - Copy
config/secrets.yml-dist
toconfig/secrets.yml
and change value to something quite unique. - Copy
config/initializers/cors.rb-dist
toconfig/initializers/cors.rb
- Copy
config/application.rb-dist
toconfig/application.rb
./bin/bundle install
./bin/rails db:setup
./bin/rails server
Simply run ./bin/rails test