├── MVC
├── .gitignore
├── package.json
├── routes
│ └── routes.js
├── index.js
├── README.md
├── controller
│ └── product.js
└── data.json
├── REST-API
├── .gitignore
├── RESTAPI.png
├── package.json
├── index.js
├── README.md
└── data.json
├── Node Class 01
├── .gitignore
├── intro.txt
├── this.js
├── index.js
├── package.json
└── README.md
├── Express Class 01
├── .gitignore
├── public
│ ├── error.html
│ └── demo.html
├── package.json
├── previous.js
├── index.js
├── README.md
└── index.html
├── MongoDb
├── .gitignore
├── package.json
├── routes
│ └── routes.js
├── index.js
├── controller
│ └── product.js
├── README.md
└── data.json
├── Mongoose
├── .gitignore
├── package.json
├── index.js
├── models
│ └── usermodel.js
├── routes
│ └── userrouter.js
└── README.md
├── Grand Hackathon
├── .gitignore
├── client
│ ├── src
│ │ ├── pages
│ │ │ ├── Allapointment.jsx
│ │ │ ├── About.jsx
│ │ │ ├── Pateints.jsx
│ │ │ ├── Home.jsx
│ │ │ ├── Error.jsx
│ │ │ ├── Doctor.jsx
│ │ │ ├── Appointment.jsx
│ │ │ └── OurDoctors.jsx
│ │ ├── assets
│ │ │ ├── docter.jpg
│ │ │ ├── logo.png
│ │ │ ├── banner-image.jpg
│ │ │ ├── icon02-free-img.png
│ │ │ ├── icon03-free-img.png
│ │ │ ├── icon04-free-img.png
│ │ │ ├── icon05-free-img.png
│ │ │ └── icon06-free-img.png
│ │ ├── App.js
│ │ ├── setupTests.js
│ │ ├── App.test.js
│ │ ├── index.css
│ │ ├── reportWebVitals.js
│ │ ├── index.js
│ │ ├── App.css
│ │ ├── routing
│ │ │ └── routing.jsx
│ │ ├── styles
│ │ │ ├── Center.css
│ │ │ └── appoi.css
│ │ ├── components
│ │ │ ├── navbar.jsx
│ │ │ └── center.jsx
│ │ └── todoapp.jsx
│ ├── .gitignore
│ ├── public
│ │ ├── robots.txt
│ │ ├── ask.png
│ │ ├── favicon.ico
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── index.html
│ ├── package.json
│ └── README.md
└── server
│ ├── .gitignore
│ ├── package.json
│ ├── models
│ ├── appointment.js
│ └── doctor.js
│ ├── index.js
│ └── routes
│ ├── routes.js
│ ├── aproutes.js
│ └── drroutes.js
├── repo.png
├── MongoDb-Commands
├── No SQL.png
├── mongodbAtlas_mongodbCompass_postman.jpg
└── README.md
├── Status Code
└── Status Code.pdf
├── Softwares.txt
├── Node Class 02
├── package.json
├── error.html
├── index.js
├── README.md
└── index.html
├── README.md
└── Node.JS
└── Get started instructions.txt
/MVC/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
--------------------------------------------------------------------------------
/REST-API/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
--------------------------------------------------------------------------------
/Node Class 01/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
--------------------------------------------------------------------------------
/Express Class 01/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
--------------------------------------------------------------------------------
/MongoDb/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .env
--------------------------------------------------------------------------------
/Mongoose/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .env
--------------------------------------------------------------------------------
/Grand Hackathon/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .env
--------------------------------------------------------------------------------
/Grand Hackathon/client/src/pages/Allapointment.jsx:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Grand Hackathon/client/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .env
--------------------------------------------------------------------------------
/Grand Hackathon/server/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .env
--------------------------------------------------------------------------------
/repo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/repo.png
--------------------------------------------------------------------------------
/Node Class 01/intro.txt:
--------------------------------------------------------------------------------
1 | Hello I am Muhammad Arham!
2 | I am fine Done.
3 | What's About you?
--------------------------------------------------------------------------------
/REST-API/RESTAPI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/REST-API/RESTAPI.png
--------------------------------------------------------------------------------
/Grand Hackathon/client/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/MongoDb-Commands/No SQL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/MongoDb-Commands/No SQL.png
--------------------------------------------------------------------------------
/Status Code/Status Code.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Status Code/Status Code.pdf
--------------------------------------------------------------------------------
/Grand Hackathon/client/public/ask.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/public/ask.png
--------------------------------------------------------------------------------
/Grand Hackathon/client/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/public/favicon.ico
--------------------------------------------------------------------------------
/Grand Hackathon/client/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/public/logo192.png
--------------------------------------------------------------------------------
/Grand Hackathon/client/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/public/logo512.png
--------------------------------------------------------------------------------
/Grand Hackathon/client/src/assets/docter.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/src/assets/docter.jpg
--------------------------------------------------------------------------------
/Grand Hackathon/client/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/src/assets/logo.png
--------------------------------------------------------------------------------
/Grand Hackathon/client/src/assets/banner-image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/src/assets/banner-image.jpg
--------------------------------------------------------------------------------
/Grand Hackathon/client/src/assets/icon02-free-img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/src/assets/icon02-free-img.png
--------------------------------------------------------------------------------
/Grand Hackathon/client/src/assets/icon03-free-img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/src/assets/icon03-free-img.png
--------------------------------------------------------------------------------
/Grand Hackathon/client/src/assets/icon04-free-img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/src/assets/icon04-free-img.png
--------------------------------------------------------------------------------
/Grand Hackathon/client/src/assets/icon05-free-img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/src/assets/icon05-free-img.png
--------------------------------------------------------------------------------
/Grand Hackathon/client/src/assets/icon06-free-img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/Grand Hackathon/client/src/assets/icon06-free-img.png
--------------------------------------------------------------------------------
/MongoDb-Commands/mongodbAtlas_mongodbCompass_postman.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arhamansari11/Backend-Developement/HEAD/MongoDb-Commands/mongodbAtlas_mongodbCompass_postman.jpg
--------------------------------------------------------------------------------
/Node Class 01/this.js:
--------------------------------------------------------------------------------
1 | const done = " File System Function Done" ;
2 | const github = "Update Commit";
3 |
4 | const done1 = done.trim();
5 |
6 | module.exports = done1;
--------------------------------------------------------------------------------
/Grand Hackathon/client/src/App.js:
--------------------------------------------------------------------------------
1 | import Routing from "./routing/routing.jsx"
2 |
3 | function App() {
4 | return (
5 | <>
6 |
| Name | 36 |Specialization | 37 |Contact Info | 38 |Actions | 39 |
|---|---|---|---|
| {doctor.name} | 45 |{doctor.specialization} | 46 |{doctor.contactinfo} | 47 |48 | {/* Pass the doctor data to the Appointment component */} 49 | 55 | 58 | 59 | | 60 |
5 |
6 | ### [[ Reading Material ]]
7 |
8 | #### HTTP Methods
9 |
10 | The HTTP method is the type of request you send to the server. You can choose from these five types below:
11 |
12 | - `GET` : This request is used to get a resource from a server. If you perform a `GET` request, the server looks for the data you requested and sends it back to you. In other words a `GET` request performs a `READ` operation. This is the default request method.
13 |
14 | - `POST` This request is used to create a new resource on a server. If you perform a `POST` request, the server creates a new entry in the database and tells you whether the creation is successful. In other words, a `POST` request performs an `CREATE` operation.
15 |
16 | - `PUT` and `PATCH`: These two requests are used to update a resource on a server. If you perform a `PUT` or `PATCH` request, the server updates an entry in the database and tells you whether the update is successful. In other words, a `PUT` or `PATCH` request performs an `UPDATE` operation.
17 |
18 | - `DELETE` : This request is used to delete a resource from a server. If you perform a `DELETE` request, the server deletes an entry in the database and tells you whether the deletion is successful. In other words, a `DELETE` request performs a `DELETE` operation.
19 |
20 |
21 | **REST API** are a combination of METHODS( GET, POST etc) , PATH (based on resource name)
22 |
23 | Suppose you have a resource named `task`, Here is the example of 5 REST APIs commonly available for task.
24 |
25 | 1. **READ APIs :**
26 |
27 | - GET `\tasks` : to read all
28 |
29 | - GET `\task\:id` : to read a particular task which can be identified by unique `id`
30 |
31 |
32 | 2. **CREATE APIs :**
33 |
34 | - POST `\tasks` : to create a new task object (data will go inside request body)
35 |
36 | 3. **UPDATE APIs :**
37 |
38 | - PUT `\task\:id` : to update a particular task which can be identified by unique `id`. Data to be updated will be sent in the request body. Document data will be generally **totally replaced.**
39 | - PATCH `\task\:id` : to update a particular task which can be identified by unique `id`. Data to be updated will be sent in the request body. Only few fields will be replace which are sent in **request body**
40 |
41 | 4. **DELETE APIs** :
42 |
43 | - DELETE `\task\:id` : to delete a particular task which can be identified by unique `id`.
44 |
45 | ### [[ Chapter Notes ]]
46 |
47 | - **REST API** is a standard for making APIs.
48 | - We have to consider a resource which we want to access - like **Product**
49 | - We access **Product** using combination of HTTP method and URL style
50 |
51 | **REST API ( CRUD - Create , Read , Update, Delete) :**
52 |
53 | - **CREATE**
54 | - **POST** /products - create a new resource (product)
55 |
56 | - **READ**
57 | - **GET** /products - read many resources (products)
58 | - **GET** /products/:id - read one specific resource (product)
59 |
60 | - **UPDATE**
61 | - **PUT** /products/:id - update by replacing all content of specific resource (product).
62 | - **PATCH** /products/:id - update by only setting content from body of request and not replacing other parts of specific resource (product).
63 |
64 | - **DELETE**
65 | - **DELETE** /products/:id - delete a specific resource (product).
66 |
67 |
68 |
69 |
70 | ### [[ Assignments ]]
71 |
72 | - **Assignment 1** : Make an API similar to explained above for `Quotes` take dummy data from same site ([dummy json quotes](https://dummyjson.com/quotes))
73 |
--------------------------------------------------------------------------------
/Grand Hackathon/client/src/pages/Appointment.jsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import Navbar from "../components/navbar";
3 | import { toast, ToastContainer } from 'react-toastify';
4 | import 'react-toastify/dist/ReactToastify.css';
5 | import "../styles/appoi.css"; // Make sure to import your CSS file
6 |
7 | const Appointment = () => {
8 | const [loginData, setLoginData] = useState({
9 | name: "",
10 | email: "",
11 | phone: "",
12 | });
13 |
14 | const handleChange = (e) => {
15 | setLoginData({
16 | ...loginData,
17 | [e.target.name]: e.target.value,
18 | });
19 | };
20 |
21 | const handleSubmit = (e) => {
22 | e.preventDefault();
23 |
24 | // Log the data to the console
25 | console.log("Form data submitted:", loginData);
26 |
27 | // Show a toast
28 | toast.success('Form Submitted!', {
29 | position: "top-right",
30 | autoClose: 5000,
31 | hideProgressBar: false,
32 | closeOnClick: true,
33 | pauseOnHover: true,
34 | draggable: true,
35 | progress: undefined,
36 | theme: "dark",
37 | });
38 |
39 | // Reset the input fields
40 | setLoginData({
41 | name: "",
42 | email: "",
43 | phone: "",
44 | });
45 |
46 | // Your login logic goes here
47 | // If you want to perform additional actions or send the data to the server, you can do it here
48 | };
49 |
50 | return (
51 | <>
52 | Please enter your details!
63 |41 | Lorem ipsum dolor, sit amet consectetur adipisicing elit. Vitae 42 | tenetur nisi nihil illum eligendi eum esse aut accusamus. 43 | Obcaecati praesentium facilis nisi ullam culpa ipsum saepe 44 | veritatis recusandae, nemo non.lorem ipsum and then 45 |
46 |66 | Some quick example text to build on the card title and make up 67 | the bulk of the card's content. 68 |
69 | 70 | Go somewhere 71 | 72 |81 | Some quick example text to build on the card title and make up 82 | the bulk of the card's content. 83 |
84 | 85 | Go somewhere 86 | 87 |96 | Some quick example text to build on the card title and make up 97 | the bulk of the card's content. 98 |
99 | 100 | Go somewhere 101 | 102 |111 | Some quick example text to build on the card title and make up 112 | the bulk of the card's content. 113 |
114 | 115 | Go somewhere 116 | 117 || Title | 137 |Task | 138 |Actions | 139 |
|---|---|---|
| {tasks.title} | 145 |{tasks.task} | 146 |147 | 153 | 159 | | 160 |
| Name | 152 |Specialization | 153 |Contact Info | 154 |Actions | 155 |
|---|---|---|---|
| {doctor.name} | 161 |{doctor.specialization} | 162 |{doctor.contactinfo} | 163 |164 | 170 | 176 | | 177 |