Hello,I am Utkarsh Shahare. |
---|
Admin have authority to create Post, edit post , delete User , edit User {But can not delete or update others Admin data and Posts}
User : Can register and login have can save details in backend {have authority to view posts from home page}
Create Project
npm create vite@latest [your project name]
- frontend folder
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
- tailwind.config.js
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
- src/index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
npm install -D react-router-dom
- In backend ( cd backend) :
npm init
npm i dotenv express mongoose mongoose-unique-validator jsonwebtoken multer uuid express-validator bcryptjs
npm i -D nodemon
npm i sweetalert2
npm install react-bootstrap bootstrap
-
setup .env file using .env.example
-
cd frontend
npm i -y
npm run dev
- cd backend
npm i -y
npm run seed
npm start
Password | |
---|---|
utkarsh@123 | 123 |
myutkarsh@123 | 456 |
Thank You ! |
---|