-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/PawanSirsat/Generate-Rand…
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generate-RandomUser-API | ||
RandomUserGenerator is a web application that utilizes a random user data API to generate and display detailed user profiles | ||
# Link | ||
# https://pawansirsat.github.io/Generate-RandomUser-API/ | ||
|
||
## How This Process Works | ||
|
||
Here's a basic outline of how this process works: | ||
|
||
1. **Fetching Data**: To pull data from an API, JavaScript is often used to make asynchronous requests using the `fetch()` function. This function sends an HTTP request to the API endpoint and waits for a response. | ||
|
||
2. **Receiving Data**: Once the API responds, the data is typically returned in JSON format. JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy to work with in JavaScript. | ||
|
||
3. **Using the Data**: After receiving the data, it can be processed and displayed on the web page as needed. This can involve updating the DOM (Document Object Model) to insert the data into specific HTML elements. | ||
|
||
4. **Saving Data Locally**: In some cases, it may be desirable to save the retrieved data for offline use or to improve performance. Local storage, a feature provided by web browsers, allows developers to store data as key-value pairs in the user's browser. JSON is often used to serialize and deserialize data when saving and retrieving it from local storage. | ||
|
||
By following these steps, web developers can seamlessly integrate data from external APIs into their applications, providing users with dynamic and up-to-date content. | ||
|