This is a team project that features an ecommerce website with different roles (admin, seller, buyer , guest) using Ruby on Rails.
-
All roles can view products, its price and details.
-
As buyer, you can add products to your cart and order all selected products with all requirements to finish order delivery process, rate the product and write a review on it, etc ..
-
As seller, you act as a buyer in addition to add new products and change the order states.
-
As admin, you have all permisions in the system.
- page caching
- API for products index and show product
- model unit test
- email sending process occurs in background
Ahmed Abdelhamid - Muhammad Aladdin - Nouran Samy - Zeyad Saleh
you should setup your environment from here.
- Download the zipped file and unzip it or Clone it
https://github.com/Nouran96/ecommerce_rails.git
- cd inside the project
cd ecommerce_rails
- Run this command to install all gems we used
bundle install
- Create file called 'local_env.yml' in /config with these lines:
MAIL_USERNAME: 'your_email_that_used_to_send_welcome_emails' MAIL_PASSWORD: 'your password' DATABASE_USERNAME: 'your database username' DATABASE_PASSWORD: 'your password'
- run this command to create your database
rake db:create db:migrate
- seed the database - generate fake test data
rails db:seed
- Start your server
rails server
- Open your browser on this url
http://localhost:3000
MIT License
Copyright (c) 2020 ZAMN Team
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.