A fruity fictitious e-commerce application that has admins, merchants, registered users, and visitors. Our application allows admins to manage all users. Merchants can fulfill orders, change order status and enable/disable items. Registered users and visitors can browse the items, place items in their shopping cart and checkout. Customers of the site can register and log in.
https://chez-produce-turing.herokuapp.com/
This group project was completed in 10 days as a requirement for Module 2 at Turing School of Software and Design.
The project was built using Rails which implements the following:
- MVC design pattern.
- Object oriented programming principles.
- CRUD functions - create, read, update, delete.
- Behavior Driven Development - BDD.
- Advanced database queries and calculations using ActiveRecord.
- Authentication using bcrypt.
- Session management to implement authorization for various users and shopping cart experience.
- Feature and model testing with test coverage at 99% or better.
- FactoryBot to create objects for efficient testing.
- Version control using GitHub.
- Project management tool: GitHub Projects.
- Erin King - @erin-king
- Jalena (Penaligon) Taylor - @jalena-penaligon
- Jennica Stiehl - @JennicaStiehl
- Smitha Hosmani - @hsmitha26
- Rails 5.x
- ActiveRecord - PostgreSQL.
- Bcrypt
- RSpec
- FactoryBot
- Shoulda Matchers
- Capybara
- Simplecov
- Pry
- Launchy
https://github.com/jalena-penaligon/chez-produce
1. Clone the GitHub repository.
2. Go to the directory with the new repo. Run bundle install.
3. Run rake db:{create,migrate,seed}
4. Run rails s, visit localhost:3000 to view the app and navigate on your local server.
1. Run rspec.
2. To run a single test, example: rspec ./spec/features/items/index_spec.rb:22
3. The above example can be edited to run spec folders and files.
1. Login as an admin: email [email protected], password: admin
2. Login as a merchant: email [email protected], password: fruity
3. Login as a customer: [email protected], password: orange123
The view with a list of all items for sale when you click on Shop: