Welcome to CodeCrafters E-Commerce, a robust and user-friendly platform for buying and selling products online. This repository contains the codebase for our e-commerce website, including the front-end, back-end, and database configurations.
- User Authentication: Secure user login and registration.
- Product Management: Add, edit, and delete products.
- Shopping Cart: Add products to the cart and manage quantities.
- Checkout Process: Seamless checkout with payment integration.
- Order Management: Track and manage orders.
-
Clone the repository:
git clone https://github.com/csec-dev-web-bootcamp/codeCrafters-e-commerce.git cd codeCrafters-e-commerce -
Install dependencies:
npm install
-
Set up environment variables:
Create a
.envfile in the root directory and add the following:NODE_ENV=development PORT=5000 DATABASE_URL=postgresql://username:password@localhost:5432/your-database-name JWT_SECRET=your_jwt_secret
-
Run the application:
npm start
-
Open the application in your browser:
http://localhost:5000
- Log in as an admin user.
- Navigate to the admin dashboard.
- Add, edit, or delete products from the products section.
- Browse products and add desired items to the shopping cart.
- Proceed to checkout to place an order.
- Track your orders in the orders section of your account.
- Front-End: Nextjs, Zustand, Tailwind, JavaScript, shadcn UI
- Back-End: Node.js, Express.js
- Database: postgresql
- Authentication: JSON Web Tokens (JWT)
- Payment Gateway: Chapa
We welcome contributions from the community! To contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a pull request.
Please ensure your code follows our coding guidelines and includes relevant tests.