Create a service that shows on a map where movies have been filmed in San Francisco. The user should be able to filter the view using autocompletion search. The data is available on DataSF: Film Locations.
- Website: Website
- Linkedin Profile: [https://www.linkedin.com/in/craaronyang/]
-
Tech stack
- React+Node.js+MongoDB
-
As is specified in code chanllenge, the website is developed according to the basic functionality requirements.
-
Since I didn't have any experience related to React or Node.js programming before, this is the first Full-stack React + Node.js web application I have ever built. Your advice would be precious to me to make improvements. Thanks for taking time going through this document.
1. Display the map where movies have been filmed in San Francisco.
2. Provide an autocompletion search bar for user to filter the moives.
1. Collect {lat, lng} data with their addresses using Geocode.
2. Prepare and process data to be displayed in frontend.
The whole web application follows the standard MVC pattern and have RESTful API.
The project is built with express, which is a widely used web framework for Node.js .
- models // Directory for the model files for collections in MongoDB.
- Movie.js // Model for MovieSchema
- controllers // Directory for controller files
- MovieController.js // Controller for MovieSchema
- views // Directory for HTML templates
- index.hjs // Template for main page
- src // Directory for JS source code
- components // Directory for components
- utils // Directory for saving those wrapper/helper classes
- APImanager.js // Wrapper class for sending requests
- app.js // Entry point for my page
- routes // Directory for routers
- api.js // Router for API call to MovieController
- app.js // Entry point for whole App
- React - The front end I used
- Node.js - Backend
- npm - Packagement Management
- Express - Web framework for Node.js
- Material UI - UI library
- Google MAP API - Google Map API
Add infowindow to each marker.