Example implementation of log in functionality using:
It's based on create-react-app.
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.
npm installoryarnnpm startoryarn start
npm run jestoryarn run jest
Authentication is faked. Hardcoded valid credentials are:
test@test.plPassword1
Project is still open for improvements. Here are some ideas:
- Cleanup dependencies inherited from
create-react-appboilerplate. - Introduce better approach for base styles using
styled-components.- Use a theme.
- Use component props.
- Store user data in
localStorageto persistisAuthenticated. - Come up with a strategy for component testing as currently it's problematic due to
reduxandredux-form. - Replace
redux-thunkwithredux-saga.
