Skip to content

Sravaani/MentorMentee

Repository files navigation

M&M - Frontend Prerequisites

Download the following.

1.Node JS

https://nodejs.org/en

2.Visual Studio Code

https://code.visualstudio.com/

Create React App Using Vite with below commands

1.type npm create vite@latest in your vsc terminal

2.go to your created folder & type npm init in your terminal for node_modules & package-lock.json

3.type npm run dev to run react app.

Integrate Your App with

1.Tailwind CSS

2.Axios

3.Router

4.Redux Toolkit

  1. Tailwind CSS

https://tailwindcss.com/docs/guides/vite

step 1:type npm install -D tailwindcss postcss autoprefixer

step 2:type npx tailwindcss init -p These two commands will create two config files -> Postcss.config.js & tailwind.config.js

step 3: replace the code in tailwind.config.js file with the below code.

/** @type {import('tailwindcss').Config} */

export default { content: [ "./index.html", "./src/**/*.{js,ts,jsx,tsx}", ], theme: { extend: {}, }, plugins: [], }

step 4: Go to index.css file & add this directives

@tailwind base;

@tailwind components;

@tailwind utilities;

step 5 : Tailwind Setup is done.

  1. How to setup Axios in your project.

https://www.npmjs.com/package/axios

step 1 : type npm i axios in your terminal.

step 2 : import axios from "axios";

step 3 : use axios in your app like

axios.get(url) .then(res => { console.log(res.data); });

  1. How to setup React Router Dom

https://www.npmjs.com/package/react-router-dom

step 1 : type npm i react-router-dom in your terminal.

follow the remaining steps

https://reactrouter.com/en/main/start/tutorial

  1. How to Integrate Redux ToolKit

step 1: type npm i @reduxjs/toolkit

step 2 : type npm i react-redux

follow the remaining steps

https://redux-toolkit.js.org/tutorials/quick-start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published