Git Product home page Git Product logo

parse-react-authentication's Introduction

React + Parse authentication

Assignment from The Iron Yard-Austin

Week 7 - day 25

Description

Build out a simple web application that allows users to log in with Parse.

Objectives

Learning Objectives

After completing this assignment, you should…

  • Understand how user authentication works

Performance Objectives

After completing this assignment, you be able to effectively use

  • Parse login and registration

Details

Deliverables

  • A repo containing at least:
    • scripts/main.js
    • index.html

Requirements

  • No ESLint warnings or errors

Normal Mode

Fork and clone this repository. After cloning, cd into the new directory and run the tiyfe command.

You will need to add your own parse API tokens using Parse.initialize(...) in the scripts/main.js file in order for this code to work.

In this assignment you will implement a log in page component that checkd a username / password combination using parse. If an error is returned from parse (ie. the username is incorrect, the password is incorrect, or anything else) the error should be shown on your registration page. If the user successfully logs in, you should redirect the user to the dashboard page.

Hard Mode

Add security measures such that if a user is not logged in, they cannot access the dashboard page. One way to do this would be to redirect them to the login page if they try to access the dashboard page while logged out.

Notes

  • React state (this.state and this.setState(...)) is useful for showing errors.
  • Passing an instantiated router into your registration component will make it easy to redirect the user to the correct place once they successfully log in.
  • You will need to create an account and a new applicaton on parse.com to complete this assignment.

Additional Resources

parse-react-authentication's People

Contributors

m2mathew avatar

Watchers

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