- Clone the project
git clone https://github.com/Mohitsen11/lms-frontend.git
- Move into the directory
cd lms-frontend
- Install dependencies
npm i
- Run the server
npm run dev
(https://tailwindcss.com/docs/guides/vite)
- Install tailwind and other dependencies
npm install -D tailwindcss postcss autoprefixer
- Create
tailwind.config.js
file
npx tailwindcss init -p
- Add the files and extensions to the tailwind config file in content property
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
- Add the tailwind directives on the top of src/index.css file
@tailwind base;
@tailwind components;
@tailwind utilities;
- Then run the server, tailwind should be integrated...
npm install @reduxjs/toolkit react-redux react-router-dom react-icons react-chartjs-2 chart.js daisyui axios react-hot-toast @tailwindcss/line-clamp
- Install the plugin
npm i eslint-plugin-simple-import-sort
- Add rule in
.eslintrc.cjs
file
'simple-import-sort/imports': 'error',
- Add simple-import-sort in plugins array in
.eslintrc.cjs
file
plugins: [... , 'simple-import-sort'],
-
Open settings.json in vscode configuration settings
-
Add the following line
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}