Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Sample login page implemented using React and Redux

License

Notifications You must be signed in to change notification settings

sgraczyk/react-login-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login Page Example with React and Redux

Example implementation of log in functionality using:

It's based on create-react-app.

Goals

Project aims to bring more or less real world experience of working with react and redux. To do so it incorporates considered directory structure and file naming.

How to run

  • npm install or yarn
  • npm start or yarn start

Tests

  • npm run jest or yarn run jest

Authentication is faked. Hardcoded valid credentials are:

  • test@test.pl
  • Password1

Further steps

Project is still open for improvements. Here are some ideas:

  • Cleanup dependencies inherited from create-react-app boilerplate.
  • Introduce better approach for base styles using styled-components.
    • Use a theme.
    • Use component props.
  • Store user data in localStorage to persist isAuthenticated.
  • Come up with a strategy for component testing as currently it's problematic due to redux and redux-form.
  • Replace redux-thunk with redux-saga.

About

Sample login page implemented using React and Redux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published