This is a guide about how to create a simple e-commerce using Next.js, AWS S3, MySQL, NextAuth.js, MySQL, email verification, React and Stripe gateway. This guide is 100% educational, for example auxiliary functions are in the same file where are used for better understanding (in real projects you put all your axuliary functions in the same folder/file) or use another approach to validate API calls. This e-commerce is supposed to be a simple Business-to-Consumer (B2C). Once completed, I will share a MySQL dump and provide guidance on the structure of the 'credentials.ts' file.
Current state: finished
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
- Limit API calls per minute
- Validate headers from API calls
- Hash passwords and secure user input
- Implement login
- Implement header
- Create account
- Verificate email
- Recover account
- Handle custom authorization via nextauth
- Create comments on products
- Send images to AWS S3 Bucket
- Create product publication
- Handle user sessions
- Use stripe gateway
- Cute logo
- Manage stock at Checkout
- Implement product visualization
- Proper transaction
- Webhook handling for stripe session completion
- Implement session handling for the shopping cart
- Create checkout completion page
- Create account validation page
- Search products
- Implement admin privileges
Ask me anything ๐