React front-end app for the CTG Locations final project application.
This React application expects the CTG locations service to run on port 3000 (http://localhost:3000
).
Don't forget to run npm install
to install all dependencies.
If you don't set your API key, the map will look strange. This won't affect performance or functionality so it's an optional step.
Create a .env.
file and paste the following content:
REACT_APP_API_KEY=your-api-key
Replace your-api-key
with your Google Maps API key. If you are not sure how to get an API key, read this official tutorial from Google.
Run the application on port 3001.
PORT=3001 npm start