English | Русский
Auth client boilerplate using React with TypeScript, state container Redux.
It can be used as starter for a new project: implements API for user sign up/sign in (incl. in with social media) and features like email verification, forgotten password, reset password.
- React frontend initialized by create-react-app with Typescript. Functional Components and Hooks;
- Predictable state container Redux, using redux-thunk and redux-logger middlewares;
- Uses react-router for routing;
- Internationalization i18next;
- Sass preprocessor for СSS.
- Clone this repo
- Run
npm installto install the packages declared inpackage.json - For setting work authorization social medias in file
./src/shared/constants.tsyou need to specify constants:FACEBOOK_CLIENT_ID, GOOGLE_CLIENT_ID, VK_CLIENT_ID - Run the app
$ npm startRuns the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
$ npm run buildBuilds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
A server in repo auth-server has been implemented for this application.
Copyright © 2021 MIT by Sulakin Vadim
