Welcome to EShop, a Next.js project for an online store. This project is bootstrapped with create-next-app
and includes integration with Clerk for authentication and PlanetScale for the database.
To get started, follow these steps:
-
Clone the repository:
git clone https://github.com/JeevanJoshi4434/EShop.git cd eshop
-
Rename the
.env.example
file to.env
and set up your accounts on Clerk and PlanetScale. -
Obtain your API keys from Clerk:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
andCLERK_SECRET_KEY
. Set these values in the.env
file. -
Set up your PlanetScale database and obtain the
DATABASE_URL
. Set this value in the.env
file. -
Install dependencies and initialize the Prisma database:
npm install npx prisma init npx prisma generate npx prisma db push
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser to see the result.
Special thanks to Code with Antonio - YouTube.
Cloned by:
Check out the original source at Code with Antonio.
Feel free to modify and enhance the project according to your needs. Happy coding!