- clone the project
git clone https://github.com/praveenakamrshadow/lms-frontend.git
- Move into the directory
cd lms-frontend
- Install dependencies
npm i
- Run the server
npm run dev
How to setup tailwind in your project with vite Link
- Install tailwind and other dependencies
npm install -D tailwindcss postcss autoprefixer
- Create the
tailwind.config.js
file
npx tailwind init -p
- Add the files and extensions to tailwind config in the content property
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
- Add the
@tailwind
directives for each of Tailwind’s layers to your./src/index.css
file.
@tailwind base;
@tailwind components;
@tailwind utilities;
- Start your build process
npm run dev
- Start using Tailwind in your project
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 -D eslint-plugin-simple-import-sort
- Add rule in
.eslintrc.js
'simple-import-sort/imports': 'error',
- Add simpl-import-sort in the plugin array of
.eslintrc.js
file
plugins: [..., 'simple-import-sort']
-
Open
settings.json
in vscode configuration settings -
Add the following line
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}