A tool to visually explore CrunchBase companies in your area.
Tools/Technologies Used
- React
- React Google Maps
- Bulma (+ Bloomer HOC's)
- Node + Express
- Bunyan for server logging
- MongoDB + Mongoose
- Webpack
Run:
$ npm install
Create a .env in the root directory with the following variables:
PORT # use whichever port you want
CRUNCHBASE_KEY # free Crunchbase ODM key can be request here: https://data.crunchbase.com/docs/open-data-map
GOOGLE_MAPS_KEY # Use Google Maps Places API
MONGODB_URI # DB will be set up using Mongoose schema. PM me if you want access to MLab deployment
Also, there is a (Maps API - Mapping) API Key embedded in the Google Maps React component that is restricted and will need to be replaced.
Scripts:
$ npm run react-dev #for client
$ npm run server-dev #for server
Note: The createSearchCache endpoint will make lots of requests to the Google Maps Places API, sometimes in the thousands. These requests are not free, use this function with caution!!!
The endpoints below are not user facing and need to be requested manually, using Postman for instance. The user application simply loads up the Crunchbase company data by location.
Saving Crunchbase company data, by location:
POST /downloadAllCrunchbase
body:
{
"location": [CityName]
}
Create a nearby location search cache for all the companies, by location:
POST /createSearchCache
body:
{
"location": [CityName]
}
Run correlation on Crunchbase data using location search cache, by location:
POST /matchMapsData
body:
{
"location": [CityName]
}