Skip to content

chingu-voyages/v8-geckos-team-12

Repository files navigation

v8-geckos-team-12

Chingu Voyage-8 | https://chingu.io/

Dashboard App that gets the user's current location and displays the weather forcast, relevant news, reddit feed from a selected subreddit, user's location, and a background photo based on the location.

We are still adding more features so this will be updated later on.

To get started

Clone repo

git clone https://github.com/chingu-voyages/v8-geckos-team-12.git

Install node packages

npm install

Get any API keys that you are missing.

Save a .env in root of project with your API keys.

REACT_APP_ANGOLIA_APP_ID=[Angolia API ID]
REACT_APP_ANGOLIO_API_KEY=[Angolia API key]
REACT_APP_OWM_API_KEY=[Open Weather Map API key]
REACT_APP_UNSPLASH_ACCESS_KEY=[Unsplash access key]
REACT_APP_UNSPLASH_SECRET_KEY=[Unsplash secret key]
REACT_APP_NEWS_API_KEY=[News API key]

To start development server

npm start

Open in browser

http://localhost:3000

To test lambda endpoints in development

http://localhost:3000/.netlify/functions/[function name here]

Notes for deploying to netlify

Make sure to add your API keys into your netlify build's environment variables.

Production Deployment

https://geckos.netlify.com/

Development Deployment

https://development--geckos.netlify.com/

Branch Deployments

To view branch deploy, prefix production url with branch name.

https://[BranchNameHere]--geckos.netlify.com/