Giter Site home page Giter Site logo

auth-form's Introduction

Code Challenge - Auth form with validation

Technology stack:

  • Typescript
  • React
  • Redux
  • React Router

Task:

Develop a SPA application using React, Redux, Webpack, or CRA. Create multiple pages: Login, Registration, Change password. Expandable menu to switch between pages with page name.

Registration:

  1. Email - must validate that the email is correct
  2. Password - validation of the number of characters (from 4 to 10) and for the presence of a capital letter.
  3. Repeat password - must be identical to password.

Page with authorization:

  1. Email - must validate that the email is correct
  2. Password - validation of the number of characters (from 4 to 10) and for the presence of a capital letter.

Change password:

  1. Old password
  2. New password - validation of the number of characters (from 4 to 10) and the presence of a capital letter.
  3. Repeat password - must be identical to password.

The password change page is available only to authorized users. The registration and authorization pages are only unauthorized. Make an imitation of a request to the server for each page and receive a response from the server about successful registration / authorization / password change.

Additions: Using middleware for API Saving the state of inputs when switching between pages. Notification system: About an internal error, about the presence of an incorrect password, about successful login, registration, etc.

Launch of the project

npm run start

Starting the server with authorization data on http://localhost:8000 Running the application on http://localhost:3000

Login/password for login: [email protected] / Admin123 or [email protected] / User12345, stored in db.json Authorization data: stored in db.json

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.