Skip to content

crisner1978/next-commerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b23dee6 · Jan 5, 2023

History

14 Commits
Jul 1, 2022
Jan 5, 2023
Jul 12, 2022
Jul 8, 2022
Jan 5, 2023
Jun 27, 2022
Jul 12, 2022
Jul 12, 2022
Jun 24, 2022
Jul 8, 2022
Jun 24, 2022
Jan 5, 2023
Jan 5, 2023
Jun 24, 2022
Jun 24, 2022
Jul 12, 2022
Jul 12, 2022
Jan 5, 2023

Repository files navigation

Next.js + Tailwind CSS Example

This example shows how to use Tailwind CSS (v3.0) with Next.js. It follows the steps outlined in the official Tailwind docs.

Deploy your own

Deploy the example using Vercel or preview live with StackBlitz

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-tailwindcss with-tailwindcss-app
# or
yarn create next-app --example with-tailwindcss with-tailwindcss-app
# or
pnpm create next-app --example with-tailwindcss with-tailwindcss-app

Deploy it to the cloud with Vercel (Documentation).

Todo items

Then define and call a function to handle the event charge.succeeded

  1. Find user by email and get users _id
  2. Find users cart by userId
  3. compare cart total to charge event amount
  4. if equal, add order to database
  5. Clear products from users Cart

About

Next JS, TypeScript, MongoDB, Stripe & TailwindCSS Ecommerce

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published