This project was created watching these 2 videos:
But with Typescript and no paypal integration.
- Copy
.env.example
and rename to.env
- Create an atlas account (check instructions here)
- Create a cloudinary account
- Create an
unsigned
upload preset
in cloudinary - Add the
NEXT_PUBLIC_UPLOAD_PRESET
to the.env
file - Add the
MONGODB_URI
to the.env
file - Add the
NEXT_PUBLIC_CLOUD_NAME
to the.env
file ADMIN_USERNAME
,ADMIN_PASSWORD
andTOKEN
can be whatever you want- Add the
NEXT_PUBLIC_URL
to the.env
file, usuallyhttp://localhost:3000
if you are not running another process in thatport
- Run
npm i
- Run
npm run dev
- Go to
/admin
tologin
and see the current food created and the current orders - To add more food go to the
homepage
after loggedin, there is a button to add more food - It can be used to sell any food, this example is for pizza