GETTING STARTED
- fork and clone the repo
- npm install
- npm run startDev
- npm run compile
CLOUD DATABASE SETUP
- setup an account at mlab.com
- in your dashboard, click creat new under MongoDB Deployments
- select amazon as your cloud provider and select sandbox as your plan type
- select US as your AWS region
- name your database, and submit your order
- in your dashboard, selet your newly created database
- click on users and add a user
- create a .env file in your root directory
- inside your .env file add: DB_USER=[username] DB_PASS=[password]
Google Maps Javascript API
- Go to the provided link and create your api key https://developers.google.com/maps/documentation/javascript/
- Inside spotMap.jsx component replace the api key with your api key (without the brackets): 'https://maps.googleapis.com/maps/api/js?key=[YOUR API KEY GOES HERE]&libraries=geometry,drawing,places'
- Go to https://console.developers.google.com/ and make your api restricted to only certain links, this way you can push up your api key and not worry about someone stealing it and using it.
ALGOLIA Search Setup
- Sign up www.algolia.com
- Go to API keys you have three (Application ID, Search Only & Admin Api Key)
- Go to search.jsx in your components and replace the instant search appId and apiKey with your Application ID and Search Only api key
- Inside your .env file add ALGOLIA_API=[Admin Api Key from algolia]
- Go to algoliaSearch.js in Db directory and change line 7's Application ID with your owns
Cloudinary Setup
- Sign up at www.cloudinary.com
- Create upload preset
- Get cloud name
- Inside .env file add preset and cloud name
OAuth 1.0 client ID#
- Login into Google's API section
- Get API Key info for google auth
- Put them in the .env file under GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET
- In the .env file also include: LOCAL_GOOGLE_REDIRECT=http://localhost:3000/auth/google/callback
SETTING UP TRAVIS CI
NICK CAN FILL THIS OUT
HELPFUL RESOURCES
AXIOS
https://github.com/axios/axios
EXPRESS
https://expressjs.com/
GOOGLE MAPS API REFERS
https://developers.google.com/maps/documentation/javascript/
BULMA
https://bulma.io/
MONGOOSE
http://mongoosejs.com/docs/index.html
PASSPORT
http://www.passportjs.org/docs
REACT
https://reactjs.org/docs/components-and-props.html
REDUX
https://redux.js.org/
WEBPACK
https://webpack.js.org/
GOOGLE MAPS REACT TOM CHENT
https://github.com/tomchentw/react-google-maps
ALGOLIA REACT CODE DEMOS
https://community.algolia.com/react-instantsearch/examples/Demos.html