You are working for a company developing an E-Commerce Application. Your team is working in a service-oriented architecture, meaning the front and back ends of this application are separate and communicate via APIs. Your job is to expose the data that powers the site through an API that the front end will consume.
Below are technical goals that you should be applying in this project. The priority of these goals are demonstrated using a star grading system. By the end of this project:
- Student should have a functional understanding of the concept ⭐ ⭐ ⭐
- Student should have a familiar understanding, but may still have questions ⭐ ⭐
- Student should know of the concept, but need further resources to implement ⭐
Goals
- Expose an API ⭐ ⭐ ⭐
- Use serializers to format JSON responses ⭐ ⭐ ⭐
- Test API exposure ⭐ ⭐ ⭐
- Use SQL and AR to gather data ⭐ ⭐
- gem 'jsonapi-serializer'
- gem 'shoulda-matchers'
- gem 'rspec-rails'
- gem 'simplecov'
- gem 'rspec-rails'
- gem 'factory_bot_rails'
- gem 'faker'
- Git clone this repository
git clone [email protected]:WadeNaughton/rails-engine-lite.git
- CD into the newly cloned repo
CD rails-engine-lite
- Bundle the gems
bundle install
- Migrate the database
rake db:{drop,create,migrate,seed}
- Run the command below, then make sure the database exists
rails db:schema:dump
- Make sure the database exists through the following steps:
run rails c
,
Enter Item.first
,
The first Item should have the name "Item Nemo Facere"
- Run Localhost
rails s
Wade (he/him)
💻 🤔