E-commerce platform built entirely in TypeScript, leveraging NextJS, shadcn/ui components, TailwindCSS for styling, Sanity.io for CMS, and Stripe for payment integration.
- Framework: NextJS 14
- Component Library: shadcn/ui
- Styling: TailwindCSS
- Content Management: Sanity.io
- Payment Integration: Stripe
- Deployment: Hosted on Vercel
While the platform is already functional, there are a few areas that needs to be improved such as:-
- Improving the user flow for successful and error-free payments.
- Implementing advanced searching, sorting and filtering options for product listings.
- Code improvements such as constants (for managing categories), creating a common template page for all and category based listing pages and general code cleanliness
- Running the application agains various
- Other common features within an e-commerce web application
- Clone the repo:
git clone git@github.com:mrarvind90/next-commerce.git
- Navigate to the repository:
Change <repository_directory> to the name of the cloned directory.
cd <repository_directory>
- Install Dependencies:
This command will install all the necessary dependencies for the application.
pnpm install
- Navigate to the
studio
subdirectory:cd studio
- Install Dependencies:
pnpm install
- In the same directory, start Sanity Studio
pnpm dev
- Navigate back to the root folder and start the NextJS server
pnpm dev
- You should now be able to access the Sanity Studio via
http://localhost:3333
and the web application viahttp://localhost:3000
This project is licensed under the MIT License.
Built with inspiration from the comprehensive tutorial by @janmarshalcoding. Check out the full tutorial: Next.js 14 E-Commerce Website with Stripe, and Sanity.io | Full Stack Tutorial | 2023.