- Clone the project
git clone https://github.com/ChinmayKaitade/LMS-frontend-iNeuron.git
- Move into the directory
cd LMS-frontend-project
- Install dependencies
npm i
- Run the server
npm run dev
Tailwind official instruction docs
- Install Tailwind CSS
npm install -D tailwindcss
- Create tailwind config file
npx tailwindcss init
- Add file extension to config to tailwind config file in the contents property
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
- Add the tailwind directives at the top of the
index.css
file
@tailwind base;
@tailwind components;
@tailwind utilities;
- Add the following details in the plugin property of tailwind config
[require("daisyui"), require("@tailwindcss/line-clamp")];
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 simple import sort
npm i -D eslint-plugin-simple-import-sort
plugin installed for Easy auto-fixable import sorting
- Add rule in
eslint.cjs
"simple-import-sort/imports": "error"
- Add simple-import-sort plugin in
eslint.cjs
plugins: [..., "simple-import-sort"]
-
To Enable auto import sort on file save in vscode
- open
settings.json
- Add the following config
- open
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}