Git Product home page Git Product logo

rick-and-morty's Introduction

Rick and Morty Character Search App

This is a simple iOS app built using Swift and SwiftUI that allows you to search for characters from the popular TV show Rick and Morty using the Rick and Morty API.

Features

  • Search characters by name
  • Display character information such as name, status, species, gender, and image

Screenshots

Technologies Used

  • Swift
  • SwiftUI
  • URLSession for network requests
  • JSONDecoder for JSON parsing
  • AsyncImage for loading and displaying images asynchronously

API

This app utilizes the Rick and Morty API to fetch character data. The API provides a /character endpoint that allows you to search for characters by name. The response includes information such as the character's name, status, species, gender, and image URL.

To fetch character data, the app makes an HTTP request to the API's /character endpoint with the specified character name as a query parameter.

Example API request:

GET https://rickandmortyapi.com/api/character?name={character_name}

Example API response:

{
  "results": [
    {
      "id": 1,
      "name": "Rick Sanchez",
      "status": "Alive",
      "species": "Human",
      "gender": "Male",
      "image": "https://rickandmortyapi.com/api/character/avatar/1.jpeg"
    },
    ...
  ]
}

Usage

To run the app, follow these steps:

  1. Clone the repository.
  2. Open the project in Xcode.
  3. Build and run the app on the simulator or a physical device.

Contributions

Contributions are welcome! If you find any issues or would like to add new features to the app, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.


Enjoy searching for your favorite Rick and Morty characters using this app! If you have any questions or feedback, please let me know.

rick-and-morty's People

Contributors

tugaybakay 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.