1.Clone the project
git clone https://github.com/Ayush-Vish/lms-frontend.git
- Move into the directory
cd lms-frontend
- Install dependencies
npm i
- Run the server
npm run dev
- Installing
npm install -D tailwindcss npm install -D tailwindcss postcss autoprefixer
- Creating Tailwind config file and postcss config file
npx tailwindcss init
npm tailwindcss init -p
- Make config file like this
/** @type {import('tailwindcss').Config} */
export default {
content: [ "./index.html", "./src/**/*.{html,js,jsx,ts,tsx}"],
theme: {
extend: {},
},
plugins: [require("daisyui") , require("@tailwindcss/line-clamp")],
}
- Add the tailwind directives at the top of the directives file .
@tailwind base;
@tailwind components;
@tailwind utilities;
npm i @reduxjs/toolkit react-redux react-router-dom react-icons react-chartjs-2 chart.js diasyui axios react-hot-toast @tailwindcss/line-clamp
- Install simple Import file
npm i -D eslint-plugin-simple-import-sort
- Add some rule in
.eslint.cjs
rules: {
'simple-import-sort/imports' : 'error',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
- Add simple import sort plugin in
eslint.cjs
plugins: ['react-refresh', 'simple-import-sort'],
- To enable auto import sort in file save in vscode
- Open
setting.json
- And add The following config
"editor.codeActionsOnSave": { "source.fixAll.eslint" : true }
- Open