The Tea Shop app is an API-based platform that allows users to subscribe to various tea subscriptions. Customers can sign up, choose their preferred teas, and set the frequency of their deliveries. The app provides endpoints for subscribing, canceling, and retrieving subscriptions, enabling users to manage their tea subscriptions conveniently.
Report Bug · Request Feature
Table of Contents
(Also jsonapi-serializer)
-
Clone the repo:
git clone git@github.com:GreenGogh47/tea_shop.git
-
Install gems:
bundle install
-
To establish the database and create seed data run:
bundle exec rails db:{drop,create,migrate,seed}
Inspect the /db/schema.rb
and compare to the 'Schema' section below to ensure this migration has been done successfully.
Once tea_shop
is correctly installed, run tests locally to ensure the repository works as intended.
To test the entire RSpec suite, run:
bundle exec rspec
All tests should be passing if the installation was successful.
If any tests are not passing, please report which tests are not passing Here. We will issue an update/fix as soon as possible.
Current endpoint documentation exists on Postman here.
tea_shop was crafted to satisfy the requirements for The Turing Mod 4 Take-Home Project. See the official project requirements here.
At a minimum, you must create:
- An endpoint to subscribe a customer to a tea subscription
- An endpoint to cancel a customer’s tea subscription
- An endpoint to see all of a customer’s subsciptions (active and cancelled)
- Sad path testing and error handling
- More CRUD functionality
- Additional endpoints for tea and subscription management