Code Monkey home page Code Monkey logo

rftb2019_github_finder's Introduction

RFTB2019 GitHub Finder

The first project in Brad Traversy's React Front to Back 2019 Udemy course.

I have created a branch for every lecture in the course so if you're having problems with a specific section of the project you can checkout that branch and compare your code.

Please also consider checking out my refactor branch which takes a more hook friendly approach to using Context if you're not comfortable with // eslint-disable-next-line and want to know what's going on there.

For example if you're having problems on Section 5 lesson 27 then checkout branch s5-27

The master branch is the final completed project.

Updates since course published

Since the course was published, GitHub has depreciated authentication via URL query parameters You can get an access token by following these instructions For this app we don't need to add any permissions so don't select any in the scopes. DO NOT SHARE ANY TOKENS THAT HAVE PERMISSIONS This would leave your account or repositories vulnerable, depending on permissions set.

For an example of how to use the token please checkout my refactored branch here

Some notes before you deploy

For the environment variables we set in the Netlify UI to be used we need to let Netlify run the build which as far as I know only works if you deploy from GitHub. If we run npm run build then netlify deploy --prod as per lesson 5-35 we are running the build on our local machine.

Additionally any environment variable we set needs to be prefixed with REACT_APP_, even for deploying to Netlify. process.env.NODE_ENV allows us to check the the environment (develpment in dev server and production in build).

You cannot override NODE_ENV manually

create-react-app docs for further reading

The environment variables only prevent your keys from being shared in your GitHub repo, anyone who inspects the code or looks at the network requests will see your keys, they're not private unless the server is making the API requests, not our client side app. So this may be something you would want to be aware of going into production with your own projects. So even if we do set up continuous deployment from GitHub to Netlify our keys will be available after Netlify runs the build.

To install and run locally

Clone the repo

git clone https://github.com/bushblade/RFTB2019_GitHub_Finder.git

Change into directory project

cd RFTB2019_GitHub_Finder

install

npm i

Run the dev server

npm start

Build the project

npm run build

rftb2019_github_finder's People

Contributors

bushblade avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.