Giter VIP home page Giter VIP logo

react_server's Introduction

server_2

Purposes

Clone-able Template Project Kickstart

  • This will be a cloneable template to kick start an app with Node, Mongo, Express, React and Redux.
  • I will try to list of features you will get out of the box if you clone this to start your project.

MERN stack training App

  • This is also very commented in commits which can serve as a challenge for training yourself in the MERN stack. Each commit represents a specific technical step and the names indicate what is required to proceed. To use this as a test app, attempt to complete the steps independently, and if you cannot succeed, check the commits to see what the correct config was. Repeat until you can complete each step without referencing the solutions. Generate a practice app which must be recalled from the text guidance prompts alone and recreated to test your ability to rapidly deploy new projects.

Demo project of current Code skills

This app will be public facing, open sourced, MIT licensed, so it can serve as my own dev skillset

Setup

  • Install the project, at the root dir npm install
  • then npm run dev

Google Auth Setup

  • Set up a new project at google dev console and name it https://console.developers.google.com/
  • Add a local file named keys.js inside the config file ( will be gitIgnored ) and drop your unique google auth credentials in there.

requirements

  • brew
  • heroku cli

Commands

open heroku live site

  • heroku open

git status

  • check for changes

push to heroku new changes

  • git push heroku master

check logs for heroku

  • heroku logs

Step 1

Initialize a New Express project

  • generate a gitignore and ignore node modules
  • generate an index.js and pull in express
  • set a get command to the root URL and reply with hi: there.
  • set a port to listed to the default port provided by heroku, and default to 5000 to local
  • set the app to listen to the port upon launch
  • Commit that project to git

Step 2

Enable google auth for sign in

set up passportjs.org npm install --save passport passport-google-oath20 https://www.passportjs.org/packages/passport-google-oauth20/

  • create an account with google auth
  • create a sign up form
  • upon sign up trigger, send request to google
  • let them auth there, to prove identity validated
  • when they come back, take the code param - and check with google to see if its right
  • once thats validated, create them a new - account and log them into the app.

react_server's People

Contributors

jryanhaber avatar

Watchers

 avatar James Cloos 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.