GithubHelp home page GithubHelp logo

react-router-checkpoint's Introduction

Checkpoint

Getting Started

To get started with this checkpoint, you will need to fork, clone, and install dependencies for this repo, then run the following in your terminal:

git clone https://github.com/<your-github-handle>/react-router-checkpoint.git
cd react-router-checkpoint
npm install

Overview

Clone this repo on to your home computer: https://github.com/gSchool/react-router-checkpoint

Your job is to hook up the routing for an authentication system that fits the following user stories. The following things have been created for you in advance:

  • 3 Components - Login, Signup, and UserProfile
  • Redux Actions
  • Redux Reducers

NOTE: This was built with the Reactstrap Component Library.

User Stories

  • Root Route /

    • As a user, when I navigate to / the first time, I am automatically redirected to /login
  • Login Route /login

    • As a user, when I click the submit button on the login form and I entered the correct credentials, I am sent to /profile
    • As a user, when I click on the submit button on the login form and I enter incorrect credentials, a message appears that tells me I have entered incorrect credentials
    • As a user, when I click the "Not a member?" link, I am redirected to /signup
  • Signup Route /signup

    • As a user, when I properly fill out the signup form and click the submit button, I am redirected to /login
    • As a user, when I improperly fill out the signup form and click the submit button, a message appears in the Signup component that tells me in some way I have filled out the form incorrectly
  • User Profile Route

    • As a user, when I arrive at the profile page, I see the user's name, email, company, phone, and address, as well as a profile photo
  • Navbar

    • As a user, after I log in, the "Login" and "Sign up" buttons in the navigation bar should be replaced with "Log out"
    • As a user, when I click the "Log out" button in the navigation bar, I am taken back to /login

Test Login

Email: [email protected]
Password: hello

react-router-checkpoint's People

Contributors

johnazre avatar crown0689 avatar bwreid avatar

Watchers

 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.