Shopify backend challenge
You must have an installation of ruby >= 2.2.2
-
Change directory to the root of the application:
$ cd shopify-backend
-
Install
bundler
at the command prompt if you haven't yet:$ gem install bundler
-
Install all the dependencies :
$ bundle install
-
Migrate the database:
$ rails db:migrate
-
At the root of the application, start the server:
$ rails server
-
Goto
http://localhost:3000
and you should see the server running with the default rails landing page -
Follow the API documentation in order to test the different features of the application
Visit the API documentation created with Apiary.
-
A User system could be implemented with Cart belonging to user
-
Render of JSON can be made more consistent across the Item and Cart controllers
-
Access token system can be implemented in order to prevent unauthorized Item modification -
An Order model could be implemented in order to store purchased Items
-
A job could be added to purged unused Carts after a interval of time
-
Unit tests
- Binyuan Sun