Giter VIP home page Giter VIP logo

e-commerce's Introduction

Luxe

A responsive e-commerce site built with:

  • Client: TypeScript, Next.js, Zustand, Mantine
  • Server: Strapi, Stripe API, Cloudinary

Demo

home mens product cart

What I learned

  • Implementing Next.js features:
    • getStaticPaths with getStaticProps
    • getServerSideProps
    • Image optimization with Next.js Image Component
  • Working with a headless CMS - Strapi
  • Storing images in Cloudinary via strapi/provider-upload-cloudinary plugin
  • Using Zustand for global state management and its Persist middleware
  • Basic animation with Framer Motion
  • Integrating Stripe for online payments

Further Improvements

  • Add user authentication via 'Users & Permissions' plugin in Strapi
  • Store wishlist and cart data in the database instead of localStorage
  • Add end-to-end and integration tests

Run Locally

  • Clone repo
  git clone https://github.com/zachloh/e-commerce.git
  • env variable: API_TOKEN, API_URL, STRIPE_SECRET_KEY, NEXT_PUBLIC_API_URL, NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY, NEXT_PUBLIC_ORDER_TOKEN
  npm install
  npm run dev
  • Note: The strapi application is hosted in a separate, private repo

e-commerce's People

Contributors

zachloh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.