The code in this repository is the result of following Bassir's NextJS ecommerce course on Youtube and at the same time adding:
- typescript
- recoil
- recoil-persist
An initial Typescript + MaterialUI boilerplate was taken from the MUI team themselves. Some code by them has been left behind. Please be sure to check out their excellent example.
Download the example or clone the repo:
curl -sL https://github.com/conrado/next-amazona/archive/refs/heads/main.tar.gz | tar xvz next-amazona-main
cd next-amazona-main
Install it and run:
yarn
yarn dev
-
mongodb
you will need MongoDB running somewhere, and you will need to point to it through
.env.local
file that you need to set on the project root. use.env.sample
as a template. On mac I'm using the official mongodb tap. A nice hint from Bassir was also to use mongodb compass -
paypal
Paypal payment was added on vid30.
.env.sample
has the environment varialble name will need to set in.env.local
with the sandbox credentials for it paypal to work correctly. get your own account from developer.paypal.com
-
as off of vid33 the code is no longer being followed on youtube as videos are only available on Udemy from here on.
The code is being translated from the commits of Bassir's next-amazona repository available on github.