pooyagolchian / payroll-admin

Home Page:https://payroll-admin.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Payroll Admin Panel - React + TypeScript + Vite + MUI

  • Fake Login (/login)
  • Register (/register)
  • Payment history
  • Add Employees
  • Add allowance and deduction to salary
  • Fake token for authorization and router

SOLID

Regarding the S for SOLID I just tried to keep each function(component as a function as well) just be responsible for a single task. That's why I just created a separate component for every part and also keep it simple stupid.

Prettier

Using Prettier for opinionated code formatter. It will take care of the formatting for you. Prettier creates an abstract syntax tree from your code and uses it to write new code formatted according to a set of rules. In addition, I check pretty before every commit by adding a pre-commit hook. For more detail check package.json, husky section.


Dependencies

  • Node.js (version)
  • React.js (version)
  • Vite
  • Tailwind CSS
  • MUI
  • Typescript

React + TypeScript + Vite Documents

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
  },
};
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

About

https://payroll-admin.vercel.app


Languages

Language:TypeScript 94.1%Language:HTML 2.8%Language:JavaScript 2.8%Language:CSS 0.2%