Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Source : 6.48 Explain everything related to nx framework #6089

Merged
merged 31 commits into from
Oct 17, 2021
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0f500fb
Create 5.14_Explain_everything_related_to_Rook.md
mayankkuthar Sep 24, 2021
02aaaa7
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Sep 27, 2021
2575cce
Create 5.34_Explain_everything_related_to_CrossPlane.md
mayankkuthar Sep 27, 2021
9518a8f
Delete Open_Source/Section-5 directory
mayankkuthar Sep 27, 2021
56d3359
Create CrossPlane.md
mayankkuthar Sep 27, 2021
0504abd
Rename CrossPlane.md to 5.34_CrossPlane.md
mayankkuthar Sep 27, 2021
5006be0
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Sep 27, 2021
fd87818
Create 6.9_Three.js.md
mayankkuthar Sep 27, 2021
9c10438
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Sep 29, 2021
e196d35
Create 6.7_DefinitelyTyped.md
mayankkuthar Sep 29, 2021
fed1475
Delete 6.7_DefinitelyTyped.md
mayankkuthar Oct 1, 2021
264c848
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Oct 1, 2021
5e6ef82
Create 5.54_OperatorFramework.md
mayankkuthar Oct 1, 2021
93089cf
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Oct 6, 2021
ff68a8d
Create 6.21_Appwrite.md
mayankkuthar Oct 6, 2021
7ac1d40
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Oct 6, 2021
d7d748e
Delete 5.54_OperatorFramework.md
mayankkuthar Oct 6, 2021
66a3c3a
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Oct 7, 2021
4b630f1
Create 4.23_Tezos_India_Fellowship.md
mayankkuthar Oct 7, 2021
a79cbe4
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Oct 8, 2021
aaf0dc4
Create 4.24_GitHub_Externship.md
mayankkuthar Oct 8, 2021
4fc48f3
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Oct 10, 2021
b0d0d53
Create 6.33_Linux_kernal.md
mayankkuthar Oct 10, 2021
8b00fbe
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Oct 11, 2021
f6d0201
Create 6.34_Go_Programming_Lanuage.md
mayankkuthar Oct 11, 2021
9065fbf
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Oct 13, 2021
ad5f8cf
Create 6.51_Node.js.md
mayankkuthar Oct 13, 2021
b3dbcde
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Oct 15, 2021
33593ea
Create 6.52_Axios.md
mayankkuthar Oct 15, 2021
3747dd8
Merge branch 'girlscript:Opensource' into Opensource
mayankkuthar Oct 15, 2021
ec099a7
Create 6.48_nx.md
mayankkuthar Oct 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create 6.52_Axios.md
  • Loading branch information
mayankkuthar authored Oct 15, 2021
commit 33593eadead59f4e14850f93bd45a838555b3fb7
103 changes: 103 additions & 0 deletions Open_Source/6.Popular_Projects/6.52_Axios.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Axios

<p align="center">
<img src="https://github.com/mayankkuthar/Reference-Images/blob/main/axios.png?raw=true">
</p>

Based on the XMLHttpRequests service, Axios is a lightweight HTTP client. It works in the same way as the Fetch API and is used to make HTTP requests.

## Introduction

Axios is a promise-based HTTP client that runs in the browser as well as in Node.js. It has a single API for working with XMLHttpRequests and the http interface of node.
Aside from that, it encapsulates the requests in a promise polyfill for ES6 new. Almost any dynamic project you create will at some time need to interact with a RESTFUL API,
and utilising Axios is a straightforward method to accomplish so. The frontend of my group's project used Axios to make calls to our backend. We made phone calls to acquire
particular information about our website's three models: cities, counties, and nonprofits.

Axios was first released about four years ago, and its open source code is available on GitHub. Axios has a large number of contributors who have contributed to each edition.

## Features of Axios

- Make XMLHttpRequests from the browser
- Make http requests from node.js
- Supports the Promise API
- Intercept request and response
- Transform request and response data
- Cancel requests
- Automatic transforms for JSON data
- Client side support for protecting against XSRF

## Browser Support

![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |
--- | --- | --- | --- | --- | --- |
Latest βœ” | Latest βœ” | Latest βœ” | Latest βœ” | Latest βœ” | 11 βœ” |

## Installation

**Using npm:**

```bash
$ npm install axios
```

**Using bower:**

```bash
$ bower install axios
```

**Using yarn:**

```bash
$ yarn add axios
```

**Using jsDelivr CDN:**

```html
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
```

**Using unpkg CDN:**

```html
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
```

## Request and response interception

This specific feature of Axios has gotten a lot of attention. As a result, I will not provide a thorough explanation. In a word, interceptors allow the browser to examine
HTTP requests from a central location.

The following is an example of a request interceptor.

```
// declare a request interceptor
axios.interceptors.request.use(config => {
// perform a task before the request is sent
console.log('Request was sent');

return config;
}, error => {
return Promise.reject(error);
});

// GET request
axios.get('https://mysite.com/user')
.then(response => {
console.log('This is printed after ');
});
```

The β€œRequest was sent” report will be produced on the console whenever a request is sent. Before any HTTP requests are sent to a server, this is where you can do any activity.
There are also response interceptors, which work in a similar way.

## GitHub Repo:

<p align="center">
<img src="https://user-images.githubusercontent.com/39026182/137507522-aae3ce48-95ec-4fd7-bada-ac7ef97b8f7d.PNG">
</p>

**License:** [MIT](https://github.com/axios/axios/blob/master/LICENSE)

**Repo Link:** https://github.com/axios/axios