A sustainable fashion e-commerce platform built with React, TypeScript, Express, and Stripe integration.
- Browse sustainable fashion items
- Shopping cart functionality
- Secure checkout with Stripe
- Responsive design for all devices
- Real-time cart updates
- React 18
- TypeScript
- Vite
- Redux Toolkit
- Tailwind CSS
- Express.js
- Stripe API
- Node.js (v18 or higher)
- npm (v8 or higher)
- Stripe account for payment processing
- Clone the repository:
git clone https://github.com/johnwroge/Cozy_Threads.git
cd Cozy_Threads
- Install dependencies:
npm install
- Navigate to the server directory:
cd server
- Install server dependencies:
npm install
- Create a
.env
file in the server directory:
STRIPE_SECRET_KEY=your_stripe_secret_key
STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key
- Start the backend server (from the server directory):
npm start
- In a new terminal, start the frontend development server (from the root directory):
npm run dev
The application will be available at http://localhost:5173
npm run test
To run tests in watch mode:
npm run test:watch
npm run build
The build output will be in the dist
directory.
cd server
node server.js
The dist folder will be served by the Express server at http://localhost:4242/
STRIPE_SECRET_KEY=your_stripe_secret_key
STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.