It's a simple registration created on MERN stack.
The main task of the app - get users's list with data from database and render it. This functionality is only available for users who had already registered and logged. Verification is proccesed both on the server and the client's side.
- Created server and client app.
- Validation on server's side using Express-Validation.
- Validation on client's side using React Hook Form.
- The server errors in validation are displayed on client.
- Use JWT tokens for access.
- Use a pair of access and refresh tokens.
- Use Redux for storing user's data.
- Separate logic from realization.
- Custom styles on LESS (without styling libraries).
- Logout function.
- Check if there is a token in local storage, and logging in automatically.
- Create comments for tha majority of code.
- Clone repository.
- Change directory to /client.
- Install packages using:
or
npm install
yarn install
- Change directory to /server and install packages using the same command.
- Create .env file and in /server directory and complete using the .env.example as a template.
- Repeat №5 for /client directory.
- Change directory to /server and start the server using this command:
or
npm run start
yarn start
- If there is a message in the console "Server started on port...", the server started without any problems.
- Change directory to /client and start client side using this command:
or
npm run dev
yarn dev
- Webpack will automatically open the site in default browser.
-
- JavaScript
- Express
- MongoDB
- Bcrypt
- JWT
- Cookie parser
-
- TypeScript
- React
- Redux-toolkit
- Webpack
- Less
- CSS Modules
- React hook form
- React router dom
- React transition group
- Axios