Empowering student communities through a unique e-commerce platform. Buy and sell with ease as college students connect to exchange products within their community. Affordable essentials for every student, fostering a culture of support and accessibility.
-
Install node.js compatible with your system from the official website .
-
Install npm on your desktop from terminal .
npm install
- Check the versions of Node.js and npm in the command prompt.
node -v
npm -v
- Open a directory of your choice on your system and clone the GitHub repository using Git Bash.
git clone https://github.com/vanshdhar999/College-ecommerce
- Open the cloned folder in VS Code and run the following command in the terminal to install necessary packages.
npm i daisyui prisma @prisma/client next-auth @auth/prisma-adapter prettier eslint-config-prettier prettier-plugin-tailwindcss
Run the following command in the VS Code terminal .
npm run dev
Create MonogDB database and define the query field for your data. Run
npx prisma init
Pull data from database
npx prisma db pull
Replace < password > and < projectname > with your MongoDB password and projectname
npx prisma generate
Run this command to generate Prisma Client
Go to http://localhost:3000 on your browser to view the result .
Ensure to set the following environment variables:
DATABASE_URL: Put your Database URL here.
GOOGLE_CLIENT_ID: Put your Google Client ID here.
GOOGLE_CLIENT_SECRET: Put your Google Client Secret here.
NEXTAUTH_URL: Put your NextAuth URL here.
NEXTAUTH_SECRET: Put your NextAuth Secret here.
-
User Authentication : Seamless authentication via OAuth .
-
User Management : Effortless management of user data stored on MongoDB .
-
Responsive Design : Ensures optimal performance on various desktop screen sizes.
-
Search Functionality: Case-insensitive search bar efficiently queries the underlying database .
-
Content Management: Users can interact with the website and add items for sale.
-
Database Integration: MongoDB enables secure and efficient data retrieval.
-
API Integration: Integration with Google API Console for OAuth 2.0 .
- Next.js
- TailwindCSS
- TypeScript
- DaisyUI
- Node.js
- Prisma
- TypeScript
- MongoDB
- NextAuth.js
- OAuth Google
OAuth Google - https://developers.google.com/identity/protocols/oauth2
For raising issues or contribution please connect through