First, run the development server:
yarn install # to install dependcies
yarn add next react react-dom
yarn add --dev @types/react @types/react-dom
yarn add --dev typescript @types/react @types/node @types/react-dom
yarn add @next-auth/prisma-adapter
yarn dev # to start server
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
-
fork this repo
-
clone the repo you just forked
git clone https://github.com/path/to/your/repo #not actual command
-
Create the changes, internal comments explaining them are appreciated. add the changes along with the comments where you did ,what you did and what you changed.
-
commit and push
git add .
git commit -m "message"
git push origin main
-
create a pull request- go to your github and create a pull request.
-
Add necessary details, comments if any about the pull request.
-
Click on Create PR.
-
Getting Started with DataBase-> to add Prisma and the Prisma Client
yarn add prisma --dev yarn add @prisma/client
Initialize Prismayarn prisma init
-
Set the DATABASE_URL in the .env file to point to your existing database. If your database has no tables yet, read https://pris.ly/d/getting-started define the schema in
prisma/schema.prisma
generate the client
yarn prisma generate
run the studio
yarn prisma studio
-
For the FrontEnd code you can go to
app/page.tsx
and start the stuff -
For the BackEnd code just start at
app/api
and start the stuff