Git Product home page Git Product logo

random-super-hero-generator's Introduction

Generate Superhero Website

This is a simple website that allows users to generate a random superhero by clicking on the "Get New Hero" button. The website is built using HTML and JavaScript, and it utilizes a backend API to fetch random superhero images for display.

Getting Started

To run the website locally, follow these instructions:

  1. Clone the repository to your local machine:
git gh repo clone Sainarendra21/Random-super-hero-generator
cd Random-super-hero-generator
  1. Open the index.html file in your preferred web browser.

How it Works

  • When the user clicks the "Generate Superhero" button, a request is made to the backend API to fetch a random superhero image.
  • The API returns a JSON response with the URL of the random superhero image and powers.
  • The JavaScript code then updates the image displayed on the website with the fetched superhero image.

Technologies Used

  • HTML
  • JavaScript

Backend API

The backend API used for generating random superhero images is provided by [https://superheroapi.com/api.php/${SUPERHERO_TOKEN}]`. This API returns a JSON response containing the URL of a random superhero image. The API is publicly accessible and does not require any authentication.

Dependencies

The website has no external dependencies and should run smoothly on any modern web browser.

Contributing

If you want to contribute to this project, you can follow these steps:

  1. Fork the repository on GitHub.
  2. Create a new branch with a descriptive name for your feature or bug fix.
  3. Commit your changes and push the branch to your forked repository.
  4. Create a pull request on the main repository with a detailed description of your changes.

random-super-hero-generator's People

Contributors

sainarendra21 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.