An Amazon-clone project, which is built by Next.js, and bootstrapped with create-next-app.
Products data come from Fake Store API
See Demo on vercel
- SignIn with
Google
orGithub
account withNextAuth
on top right side - SignOut on top right side
- Add items to
Cart
- Payment with Stripe
- See test card here
- See
Orders
while SignIn
$ yarn install
$ yarn dev
# need .env.local file to make it work fine
Open http://localhost:3000 with your browser to see the result.
Variables in .env.local
NEXTAUTH_SECRET
, for NextAuthGOOGLE_CLIENT_ID
, for NextAuth GoogleProviderGOOGLE_CLIENT_SECRET
, for NextAuth GoogleProviderGITHUB_ID
, for NextAuth GitHubProviderGITHUB_SECRET
, for NextAuth GitHubProviderSTRIPE_PUBLIC_KEY
, for StripeSTRIPE_SECRET_KEY
, for StripeSTRIPE_SIGNING_SECRET
, for Stripe verify the HOSTSERVICE_ACCOUNT_KEY
, for Stripe webhookFIREBSE_CONFIG
, for firebaseHOST
, host url
- Keep
Cart
data after SignIn - More
Orders
detail - Upload product by user
- Authenticated routing
- Unit test