Skip to content

blake-enyart/little-coffee-shop

Repository files navigation

Little Shop

This is a student project from Turing School of Software & Design as part of the Module 2 backend engineering curriculum. The purpose of this project was to build a fictitious e-commerce platform.

  • Registered users can register to place items into a shopping cart and 'check out'

  • Merchant users can mark their items as 'fulfilled'; the last merchant to mark items in an order as 'fulfilled' will automatically set the order status to "shipped"

  • Each user role has access to some or all CRUD functionality for application models.

  • View it live here

  • View the original assignment here

Contributors

Built With

Installing

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

  • From your terminal, clone the repo: git clone [email protected]:blake-enyart/little-coffee-shop.git
  • If you do not have PostgreSQL, follow the steps to setup PostgreSQL here
  • Move to the new project directory: cd little-coffe-shop
  • Install required gems by running: bundle install
  • Setup the database by running: rake db:{drop,create,migrate,seed}
  • Start up your local Sinatra server by running: rails server
  • View the application in your browser http://localhost:3000

Testing

RSpec was used for testing with gems Capybara and Shoulda-matchers. Test coverage was tracked with SimpleCov.

  • To run tests, from the root directory, run: rspec

Break down of tests

Tests in the spec/features folder test features simulating user interaction with the application and then expecting content on the page within specific CSS selectors.

Tests in the spec/models folder test the object models setup in the database. They contain validations for table attributes, table relationships, and also methods built with ActiveRecord to interact with the database.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages