Skip to content

dev-luckymhz/nextjs-strapi-ecommerce

Repository files navigation

Ecommerce Website

Alt Text

This is a simple e-commerce page built using Next.js, React, and Stripe for payment processing.

Prerequisites

Make sure you have the following software installed before running the project:

  • Node.js (version 14 or above)
  • npm (version 6 or above)

Getting Started

Follow the steps below to get the project up and running on your local machine:

  1. Clone the repository:

    
    git clone https://github.com/Zo-ambinintsoa/egg-app.git
    
    
  2. Navigate to the project directory:

    
    cd egg-app
    
    
  3. Install the dependencies:

    
    npm install
    
    
  4. Configure Stripe:

    • Sign up for a Stripe account at https://dashboard.stripe.com/register.
    • Obtain your Stripe API keys (publishable key and secret key).
    • Update the Stripe API keys in the project's configuration file (usually located in src/config.js).
  5. Start the development server:

    
    npm run dev
    
    
  6. Open your web browser and visit http://localhost:3000 to see the e-commerce website.

Features

  • Browse and search for products.
  • Add products to the shopping cart.
  • View and edit the shopping cart.
  • Proceed to checkout and make a payment using Stripe.

Dependencies

The project relies on the following dependencies:

  • @stripe/stripe-js (v1.35.0): Stripe JavaScript library for client-side integration.
  • next (v12.2.5): Framework for server-rendered React applications.
  • react (v18.2.0): JavaScript library for building user interfaces.
  • react-dom (v18.2.0): Package provides DOM-specific methods for React.

You can install these dependencies by running the following command:


npm install

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Acknowledgements

Feel free to customize and modify the project to fit your needs. Happy coding!