'Store 64' is a fictitious e-commerce platform consisting of users, merchants, and admins. Site visitors can log in as a User, Merchant, or Admin. Users and visitors can add items to a cart. Users can 'checkout' their cart to create an order. Merchants can fulfill items in an order, and admins can access functionality of both users and merchants.
- Requires PostgreSQL database
Clone the repo on your local machine from your terminal
git clone https://github.com/plapicola/little_shop.git
Enter the newly created directory and run bundle install and bundle update
cd little_shop
bundle install
bundle update
Create, migrate, and seed the database
rake db:{create,migrate,seed}
Launch a local server with rails s
rails s
Navigate to 'localhost:3000' in your internet browser
Visit 'localhost:3000' in your internet browser
Once you reach the site you can access login, registration, and other visitor functionality via the navigation bar at the top of the screen.
You can log in as a default admin with the following credentials:
email: [email protected] password: 'password'
Login information for various other users and merchants can be found in the db/seeds.rb file as seen below:
New users can be created through the 'Register' link in the navigation bar.
Admins can upgrade normal users to merchants via the user's profile page. They can also downgrade merchants to regular users via the merchant's dashboard page.
Store64 uses RSpec for testing. To run the full test suite, simply run 'rspec' from the terminal.
rspec
Individual tests can be run by specifying the desired file path and line number. For example,
rspec spec/models/item_spec.rb:65
will run the item model test that is found in that file on line 65.
- Ruby on Rails Framework
- Waffle.io