Skip to content

reneemes/little-shop-be-final

 
 

Repository files navigation

Little Shop | Final Project | Backend Starter Repo

This repository is the completed API for use with the Mod 2 Group Project. The FE repo for Little Shop lives here.

This repo can be used as the starter repo for the Mod 2 final project.

Setup

bundle install
rails db:{drop,create,migrate,seed}
rails db:schema:dump

This repo uses a pgdump file to seed the database. Your db:seed command will produce lots of output, and that's normal. If all your tests fail after running db:seed, you probably forgot to run rails db:schema:dump.

Run your server with rails s and you should be able to access endpoints via localhost:3000.

Little Shop -- Coupons

Abstract:

The application is designed to simulate an admin portal for a online store. The user is able to see a list of all the merchants, update their info, view their listed items, delete the listings, and view their store coupons.

Context:

This project is built off of an already existing repo, similar to one from a previous group project. The task was to add coupon functionality to the online store.

Contributors:

Renee's LinkedIn

Learning Goals:

  • Write migrations to create tables and relationships between tables
  • Implement CRUD functionality for a resource
  • Use MVC to organize code effectively, limiting the amount of logic included in serializers and controllers
  • Use built-in ActiveRecord methods to join tables of data, make calculations, and group data based on one or more attributes
  • Write model tests that fully cover the data logic of the application
  • Write request tests that fully cover the functionality of the application
  • Display data for users in a frontend application by targeting DOM elements

Wins + Challenges:

Wins:

  1. Working with a front-end that pulled data from an API
  2. Styling the front-end coupons view
  3. Getting the application functionality up and running

Challenges:

  1. Createing migrations
  2. Working out the different error codes for each different create sad path
  3. Diving into a front-end after not working in JavaScript in a long while
  4. Figuring out what goes where and how much logic is too much logic in the controller

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 97.9%
  • Dockerfile 1.7%
  • Other 0.4%