- Clone the Project
git clone https://github.com/chintu46306/EduWave-frontend.git
- Move into the directory
cd client
- install dependencies
npm i
- run the server
npm run dev
[Tailwind official instruction] (https://tailwindcss.com/docs/installation)
- Install tailwind
npm install -D tailwindcss postcss autoprefixer
- create tailwind config file
npx tailwindcss init
- Add file extension to tailwind config file in the contents property
"./src/**/*.{html,js,jsx,ts,tsx}", "./index.html"
- 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
plugins: [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
- Add rule in
.eslint.cjs
'simple-import-sort/imports': 'error'
- Add simple-import sort pligin in
.eslint.cjs
plugins: [....,'simple-import-sort']
-
To enable auto import sort on file save in vscode
- Open 'settings.json'
- add the following config
"editor.codeActionOnSave":{
"source.fixAll.eslint": true
}