Giter Site home page Giter Site logo

code2's Introduction

Flatacuties

This is the Flatacuties app, a JavaScript application that fetches data from an API and dynamically manipulates the DOM to display cute animal illustrations and allow the user to vote for their favorite animal.

Description

The Flatacuties app fetches data from an API and dynamically manipulates the DOM to display a collection of cute animal illustrations. It showcases how to use JavaScript to interact with APIs and dynamically create HTML elements.

To vote for the animal click on the name at the first bar and confirm the animal by the image that will be displayed and input your vote.

Usage

  1. Clone the repository:

https://github.com/Reiney4/week-two-code-challenge

  1. Navigate to the project folder

cd week-two-code-challenge

  1. Install json-server tool with the command

npm install -g json-server

  1. Run db.json file using the command json-server --watch db.json

5.Open the index.html file on the server and access the index.html file using this URL

http://localhost:3000/characters

  1. The application will send a GET request to the API endpoint to fetch the animal illustration data.

  2. Once the data is fetched, the app will create HTML elements to display the animal illustrations on the page.

  3. Scroll through the page to explore the cute animal illustrations.

Technologies Used

  • JavaScript
  • HTML
  • CSS

API Endpoint

The application fetches data from the following API endpoint:

API Endpoint: [ https://api.npoint.io/99410ec55ae9fca4a9cf/characters]

Replace [API Endpoint URL] with the actual API endpoint you want to fetch data from.

Author

Author: [Neema Nachok]

License

This project is licensed under the MIT License.

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.