A green initiative by passionate youths, developed using MERN stack.
GoGreen 365 is a Web Application developed to empower individuals in Singapore to make daily choices that have a positive impact on the environment. As the team behind GoGreen 365, we believe that every small action counts when it comes to protecting our planet and by engaging in sustainable activities, you can do your part to contribute to the collective effort of combating climate change.
-
Clone the repository:
git clone https://github.com/Krueless/GoGreen-365.git
-
From the root directory, toggle to the frontend (named green-sg) and backend folders to install the necessary dependencies:
cd green-sg npm i cd .. cd backend npm i
-
Set up .env file in the backend folder
-
We will need to set up a MongoDB_URI in order to access the MongoDB database. Refer to the following guide:
Set up a MondoDB Atlas account: https://www.mongodb.com/docs/atlas/getting-started/
Connect to MongoDB Atlas (via Node.js driver): https://www.mongodb.com/docs/atlas/tutorial/connect-to-your-cluster/
-
Upload the MongoDB_URI into the .env file. It should have the following format:
MONGODB_URI = mongodb+srv://<username>:<password>@clustername.mongodb.net/test?retryWrites=true&w=majority&useNewUrlParser=true&useUnifiedTopology=true- Run npm start on both the frontend and backend folder on two separate terminals:
cd green-sg npm start cd .. cd backend npm start
- The website will be live on http://localhost:3000/