Skip to content

hoanganhnh/agriculture-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agriculture Shop

A full stack e-commerce website for agriculture store

Stacks

  • TypeScript
  • Next js
  • Node js
  • Express js
  • MongoDB
  • Cloudinary (for image hosting)
  • Stripe and Paypal (for payment)
  • Vercel (for deployment)

Client Installation

cd 
cd client
npm install or yarn install

Add .env.local file to root client directory

NEXT_PUBLIC_PAYPAL_CLIENT_ID=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KY=
NEXT_PUBLIC_GOOGLE_CLIENT_ID=

Server Installation

cd server
npm install or yarn install

Add .env file to root server directory

DATABASE_URI=
JWT_SECRET=
STRIPE_SECRET_API_KEY=
GOOGLE_WEB_CLIENT_ID=
GOOGLE_ANDROID_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
CLIENT_PUBLIC_URL=
CLOUDINARY_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
PAYPAL_CLIENT_ID=
PAYPAL_CLIENT_SECRET=

This will run both client and server

npm run dev

Deploy using vercel

Globally install vercel

npm i -g vercel

Client

vercel --prod

Server

vercel --prod

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages