Operation Mother Earth is a multi-page application for school-age children to learn about electronic waste. The web application in mobile responsiveness is intended to be played on a mobile or tablet device. The application consists of a storyboard game, google search for e-waste centers around the client, user to add ew-waste centers to the server, ask questions and post questions, and view a collection of videos about e-waste.
https://operation-mother-earth.netlify.app/
When you open the directory run:
npm install
In the project directory, run:
npm start
The frontend for this project is located on repo operation-mother-earth-client
You will need to open and run the frontend for the backend to work.
-
To start using this app you first need to clone the repository:
git clone git@github.com:revyrob/operation-mother-earth-server.git
-
Run with MongoDB:
Within the Data folder there are 5 folders with json data for the projects. Import these files into your MongoDB database and enter your DB_URI key into the environment file. OR You can also run the operation-mother-earth-jsonServer if you don't want to create a MongoDB database.
-
Create a .env file within the root folder. Create a google api key with Google Cloud. Create a MongoDB account and add your DB_URI key. Include the following into the .env file:
PORT = 8080 REACT_APP_NEXT_PUBLIC_GOOGLE_MAPS_API_KEY = Google API key DB_URI = MongoDB connection line
-
Run the backend with the following command in the folder:
npm start
-
Locate the frontend repo at operation-mother-earth-client and follow install steps.