This is our third (and final) Makers Academy bootcamp group project. Our team was formed by a shared interest in building a "Tech for Good" web application. And so we've built Second Helpings, a website that connects businesses with left over food to charities looking for donations.
- MERN Stack (MongoDB, Express, React, Node)
- DB Hosting: MongoDB Atlas
- Testing: Jest unit testing on the backend, Cypress for integration testing
- API Testing: Insomnia, Postman
- APIs: Google API, Open Postcode Geo API
- CSS: Bootstrap
- Deployment: Heroku
- Business tools: Miro, Trello, EasyRetro
-
Create a .env file in the root directory
-
Set up a MongoDB account and follow the guide to setting up a database
-
In your root .env file write the following:
PORT = 5000
CONNECTION_URL = < MONGODB URL STRING HERE >
TEST_CONNECTION_URL = < MONGODB TEST URL STRING HERE >
- Clone this repo
- In both the root directory and the client directory separately run
npm install
- Set up a Google Maps API key which allows access to the Google Maps JavaScript API
- In the client directory create .env containing
REACT_APP_ENDPOINT = < SERVER LOCAL HOST END POINT >
REACT_APP_MAP_API = < GOOGLE MAPS API KEY >
An example of the server's local host end point is http://localhost:5000/api/
When in the root directory, the command
npm test
will run Jest for the back-end unit tests. To run the integration tests with Cypress, the command is
cd client
npm test