Little Shop of Hors d'Oeuvres is a group project developed as part of Backend Mod 2 at the Turing School of Software and Design. The assignment was to create a fictitious e-commerce platform where users could register to place items into a shopping cart and 'check out'. Merchant users needed to be able to mark items as 'fulfilled', and admin users could mark orders as 'complete'. Each user role needed to have access to some or all CRUD functionality for application models.
Mod 2 of the backend program trains students to build out web applications in Ruby. Specific goals of the Little Shop project included: advanced Rails routing, including nested resources and namespacing; advanced ActiveRecord usage; practice with HTML and CSS; use of session management; as well as authentication, authorization, and separation of user roles and permissions.
Built with
Little Shop of Hors d'Oeurves was built on Rails 5.1.6.1 and using PostgreSQL. It runs using 'bcrypt' for authentication. Please ensure that local environments are compatible before cloning down.
Installation Steps:
- Fork and clone the repository at https://github.com/aprildagonese/little_shop
- Run
bundle install
- Run
rake db:{create,migrate,seed}
- To run locally in development mode, run
rails s
in your terminal; then go tolocalhost:3000
in your browser.
Little Shop of Hors d'Oeuvres is especially proud of the use of partials to keep its code DRY and its styling consistent. The app relies heavily on ActiveRecord for database queries of intermediate complexity, and it successfully implements Authorization.
All tests were built using RSpec and Capybara, with FactoryBot and Faker implemented for seed data.
To run the tests, simply clone down the repository and run the command: rspec
Tests are divided by models and features, with feature tests generally sub-divided by user view. Little Shop of Hors d'Oeuvres is proud to operate with 100% test coverage of all models, and we ask contributors to help us maintain this standard.
We provide demo accounts to help users explore the application. Please use the following accounts to log in. All accounts use the test password: password
To contribute to Little Shop of Hors D'Oeurves, please fork the repository at https://github.com/aprildagonese/little_shop and make a pull request back to the original repo.
The developers of Little Shop of Hors d'Oeuvres would like to thank their instructors, Ian Douglas and Megan McMahon, for their help and support in the completion of the project. Everything we do, we do for you.