Skip to content

Kingrexicon/client-side

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client Side API Code

This is a simple web application that demonstrates how to consume an API on a button click using vanilla JavaScript.

Features

  • User enters a rapper's name in the input field.
  • On button click, the app fetches data from a public API and displays the rapper's birth name.
Screenshot (80)

Screenshot_2025-09-04-07-51-30-951_com android chrome

site link (https://knowyourrapper.netlify.app)

Project Structure

index.html
css/
js/
  main.js
  • index.html: The main HTML file containing the UI.
  • js/main.js: Handles the API request and updates the UI.

Usage

  1. Open index.html in your browser.
  2. Enter a rapper's name in the input field.
  3. Click the "Click Me" button.
  4. The birth name of the rapper will be displayed under "Result".

API

This project uses the following API endpoint:

https://my-first-crud.onrender.com/api/{rapperName}

Replace {rapperName} with the name you want to search for.

Example

  • Input: eminem
  • Output: Marshall Bruce Mathers III

License

This project is for educational purposes.

About

client side that collects data from my server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published