Frontend repository: https://github.com/robertziel/just_cars_react_client
- Grape API:
/api
- Swagger documentation:
/api/docs
(new items can be added here via POST /items endpoint)
-
Make sure you have proper ruby version installed, defined in .ruby-version
-
And PostgreSQL running
-
To process images imagemagick is required
-
Then:
bundle install
rake db:create
rake db:migrate
rails s -p 8080
- Your app should be available
localhost:8080
- Set up overcommit to make sure yuur code is clean :) :
gem install overcommit
bundle install --gemfile=.overgems.rb
overcommit --install
- Make sure elint is installed, just run:
npm install
- Then you can commit your changes!
CORS_ALLOWED_ORIGINS
- if empty localhost:3000
is used as default
- It'd be nice to implement pagination in ItemsApi#index
- If the application is expected to be developed further it's better to use API versioning