- Project Description
- Features
- Installation
- Usage
- Technologies
- Database Schema
- Environment Variables
- Contributing
- License
- Contact
The Market Cat is an e-commerce platform designed to enhance the shopping experience. The project features a responsive interface for users to browse and purchase items, while allowing administrators to manage products, orders, and users effectively.
- User Authentication: Registration, login, and password recovery using Devise.
- Product Management: Users can browse items, add them to the cart, and purchase them.
- Order System: Complete checkout process with email notifications.
- Responsive Design: Optimized for both desktop and mobile.
- Admin Panel: Manage products, users, and orders efficiently.
- Integration with Mailjet: Automated email communication.
- Ruby: 3.2.2 or higher
- Rails: 8.0.0
- PostgreSQL
- Node.js: Version 14 or higher
- Bundler: Installed globally
git clone https://github.com/your-username/the_market_cat.git
cd the_market_catbundle install
yarn installrails db:create
rails db:migrate
rails db:seedRun the following command:
rails serverOpen your browser and navigate to:
http://localhost:3000
- Frontend: HTML, CSS, JavaScript
- Backend: Ruby on Rails
- Database: PostgreSQL
- Authentication: Devise
- Mailing: Mailjet API
- Deployment: Heroku
| Column Name | Data Type | Description |
|---|---|---|
| id | Integer | Primary key |
| String | User email (unique) | |
| encrypted_password | String | Password hash |
| created_at | Timestamp | Record creation date |
| updated_at | Timestamp | Last update date |
| Column Name | Data Type | Description |
|---|---|---|
| id | Integer | Primary key |
| name | String | Product name |
| description | Text | Product details |
| price | Decimal | Product price |
| stock | Integer | Stock available |
| Column Name | Data Type | Description |
|---|---|---|
| id | Integer | Primary key |
| user_id | Integer | Foreign key (User) |
| total_price | Decimal | Total order price |
| status | String | Order status (e.g., pending, completed) |
Create a .env file in the root directory with the following keys:
MAILJET_API_KEY=your_mailjet_api_key
MAILJET_SECRET_KEY=your_mailjet_secret_keyWe welcome contributions to The Market Cat! To contribute:
- Fork the repository.
- Create a new branch for your feature or fix:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add a brief description of your changes" - Push to your branch:
git push origin feature-name
- Submit a pull request.
- ** Developer**: Florian Tribout ALexe Marichal Paul Moulin James Barthée Caroline Olivier
- GitHub Repository: The Market Cat
This project is licensed under the MIT License.