Casa Y Comida is a free full-stack web application for disadvantaged people who need easy-to-access resources to help them locate nearby shelters, food banks, and libraries based off of their location in the United States. It is built with the MERN Stack (MongoDB, Express, React, Node.js) and uses the Google Maps API and the Google Places API.
- Check to see if you have node installed on your computer by running the command
node -v
in a terminal. If you do not have node installed, you can download it here. - Clone the repository with the command
git clone
or by downloading a zip file.
- Navigate to the server directory of the project and run the command
npm install
to install all of the dependencies. - Create a file called
.env
and paste the following code:
MONGO_URL="mongodb+srv://BOT0001:6wfos8FIaRBJjJO6@cluster0.i1muzae.mongodb.net/?retryWrites=true&w=majority"
ACCESS_TOKEN_SECRET=[your access token secret]
REFRESH_TOKEN_SECRET=[your refresh token secret]
- Paste your access token secret and refresh token secret in the variable definition (without brackets or quotes)
*To generate a random string for the access token secret and refresh token secret, run the following command in a node terminal: require('crypto').randomBytes(64).toString('hex')
- Run the command
npm start
to start the server.
- Navigate to the client directory of the project and run the command
npm install
to install all of the dependencies. - Create a file called
.env.local
and paste the following code:
REACT_APP_GOOGLE_MAPS_API_KEY=[your api key]
- Paste your Google Maps API key in the variable definition (without brackets or quotes)
*If you need help generating a Google Maps API key, follow this video: https://youtu.be/aKZuDAYZROk. Make sure that you also enable the Places and Directions APIs in the developer console.
- Run the command
npm start
to start the client.
Created by Amay Patel, Saurabh Anand, Rohan Chander, and Alejandro Santana for CEN3031 - Introduction to Software Engineering