"Ecommerce" is a project in which I created a simple yet stunning eCommerce website that
handles cart/item management and full payment functionality.
Check out the docs »
View Website
·
Report Bug
·
Request Feature
Table of Contents
The project is a fully responsive ecommerce website that handles full payment functionalities. The entire front-end code was done using React.js, and I configured Sanity in JavaScript to assist with the back-end data management. The Next.js framework was implemented to optimize the website futher with useful features as easy page routing, API handling, and data fetching for pre-rendering the pages. The project is integrated with Stripe so users can simulate a real purchase. (Real transactions are not enabled as this is just a personal project to make an ecommerce website).
First, run npm install to acquire dependencies
npm install
# or
yarn add
Second, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
- Interactive product cards
- Custom slugs for each product
- The ability to add and remove items from the cart
- Pre-rendering with Next.js (both server-side and static generation)
- Back-end content management for products
- Payment functionality
See the open issues for a full list of proposed features (and known issues).
If you have a suggestion that would make this project better or more optimal, please fork the repo and create a pull request. Alternatively, you can open an issue with the tag "enhancement" as well.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/NewFeature
) - Commit your Changes (
git commit -m 'Add some NewFeature'
) - Push to the Branch (
git push origin feature/NewFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.md
for more information.
Patrick Ducusin - patrickducusin2@gmail.com
Project Link: https://github.com/PattyCoding123/ecommerce