Welcome to GreenVille, an open-source MERN (MongoDB, Express.js, React.js, Node.js) stack ecommerce shop project. GreenVille is designed to provide a foundation for building a robust and scalable online bio Organic store. Whether you're a developer looking to learn MERN stack or an entrepreneur planning to kickstart your ecommerce venture, GreenVille is a great starting point.
Make sure you have the following installed on your machine:
Clone the repository:
git clone https://github.com/shadowofleaf96/GreenVille-Ecommerce_Final_Project.git
Change into the project directory:
cd GreenVille
Install server dependencies:
cd server
npm install
Install client dependencies:
cd client
npm install
Create a .env
file in the project root and configure your environment variables:
VITE_PORT = 3000
VITE_SECRETKEY = your token secret key
VITE_REFRESHSECRETLEY = your refresh token secret token
VITE_STMPHOST = Mailtrap host
VITE_STMPUSER = Mailtrap username
VITE_URLFRONTEND = localhost:5173
VITE_URLBACKEND = localhost:3000
VITE_STMPASS = Mailtrap password
VITE_SENDER = your email
VITE_EXPIRATIONDATE = 120000 (you can change this)
VITE_MONGOOSE = MongoDB atlas db link
Start the development server:
cd client
npm run dev
open another terminal window
cd server
npx nodemon
Client:
We welcome contributions from the community. If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request.