Neighborhood Map (React) with use of Google Maps + Foursquare APIs
I built a single page application featuring a map of some important sights in Thessaloniki, Greece, the city I live in. I added functionality to this map including highlighted locations, third-party data about those locations and various ways to browse the content.
The goal of this project was to build a single page map application using React & Google Maps API, plus to integrate a third-party data API and make the app accessible and usable offline.
To run the project in the development mode, follow the instructions below:
Download or clone the repository in your computer:
$ git clone https://github.com/dimikara/React-Neighborhood-Map-3.git
In the repository folder:
npm install axios --save
npm install react-burger-menu --save
npm install escape-string-regexp --save
npm start
To run the project in the build mode, follow the instructions below.
Run:
npm run build
This command builds the app for production to the build
folder. It correctly bundles React in production mode and optimizes the build for the best performance.
For environments using Node, the easiest way to handle this would be to install serve and let it handle the rest. Run the commands:
npm install -g serve
serve -s build
The last command above will serve the project on the port 5000 so just open http://localhost:5000 to run the production build of the project.
Please note that the Service Worker providing offline capabilities works only in the production build.
By default, the generated project uses the latest version of React.
You can refer to the React documentation for more information about supported browsers.
create-react-app
, it includes React and ReactDOM as dependencies. It also includes a set of scripts used by Create React App as a development dependency.import
beyond JavaScript.catch(error)
. I also used the gm_authFailure
function according to Google documentation. I put this function in a <script>
tag in the botttom of index.html
file.