Giter Site home page Giter Site logo

games-library-backend's Introduction

Games library

You can also read this README in English.

Оглавление

Инструкции по развертыванию

Для запуска проекта на вашем компьютере должны быть установлены npm и git

  1. Сделайте клон этого репозитория git clone https://github.com/klekwedge/games-library-backend.git
  2. Установите все необходимые пакеты npm с помощью npm i
  3. Запустите проект командой npm run start

Обзор

API предоставляет доступ к следующим функциональным возможностям:

Получение списка игр

GET /games

Параметры запроса

  • genre (необязательный) - Позволяет получить игры по жанру.
  • platform (необязательный) - Позволяет получить игры по платформе.
  • sort-by (необязательный) - Позволяет отсортировать игры.

Пример запроса

GET /games?genre=shooter&platform=pc&sort-by=alphabetical

Ответ

[
  {
    "id": 533,
    "title": "A.V.A Global",
    "thumbnail": "https://www.freetogame.com/g/533/thumbnail.jpg",
    "short_description": "A.V.A is a free-to-play online first-person shooter with multiple game modes, unique customizations, as well as PvP and PvE gameplay.",
    "game_url": "https://www.freetogame.com/open/ava",
    "genre": "Shooter",
    "platform": "PC (Windows)",
    "publisher": "NEOWIZ",
    "developer": "NEOWIZ",
    "release_date": "2022-08-24",
    "freetogame_profile_url": "https://www.freetogame.com/ava"
  },
  {
    "id": 319,
    "title": "Ace Online",
    "thumbnail": "https://www.freetogame.com/g/319/thumbnail.jpg",
    "short_description": "A free to play fast action 3D sci-fi MMO where players control space fighters jets.",
    "game_url": "https://www.freetogame.com/open/ace-online",
    "genre": "Shooter",
    "platform": "PC (Windows)",
    "publisher": "Suba Games",
    "developer": "MasangSoft",
    "release_date": "2008-08-29",
    "freetogame_profile_url": "https://www.freetogame.com/ace-online"
  },
  ...
]

Получение игры

GET /game

Параметры запроса

  • id (обязательный) - Позволяет однозначно идентифицировать игру

Пример запроса

GET /game?id=540

Ответ

{
  "id": 540,
  "title": "Overwatch 2",
  "thumbnail": "https://www.freetogame.com/g/540/thumbnail.jpg",
  "status": "Live",
  "short_description": "A hero-focused first-person team shooter from Blizzard Entertainment.",
  "description": "The tale of the hero organization Overwatch continues in Overwatch 2. This new take on the popular team shooter changes up things a little with five-man teams, redefined classes, and new playable characters. With the adjustment to 5v5, players now have more individual impact than in the previous game.\r\n\r\nChallenge yourself in all-new modes. Take control of a robot with your team in Push and take it to the enemy base before the enemy can take it from you. Explore all new areas, including iconic real-world cities such as New York, Rome, Monte Carlo, Toronto, and more.\r\n\r\nOverwatch 2 features an update schedule that drops new content every nine weeks. It also boasts a regular battle pass – both free and premium. This is where some of the game’s characters will be obtained.",
  "game_url": "https://www.freetogame.com/open/overwatch-2",
  "genre": "Shooter",
  "platform": "Windows",
  "publisher": "Activision Blizzard",
  "developer": "Blizzard Entertainment",
  "release_date": "2022-10-04",
  "freetogame_profile_url": "https://www.freetogame.com/overwatch-2",
  "minimum_system_requirements": {
    "os": "Windows 10 64-bit",
    "processor": "Intel Core i3 or AMD Phenom X3 8650",
    "memory": "6 GB",
    "graphics": "NVIDIA GeForce GTX 600 series or AMD Radeon HD 7000 series",
    "storage": "50 GB"
  },
  "screenshots": [
    {
      "id": 1334,
      "image": "https://www.freetogame.com/g/540/overwatch-2-1.jpg"
    },
    {
      "id": 1335,
      "image": "https://www.freetogame.com/g/540/overwatch-2-2.jpg"
    },
    {
      "id": 1336,
      "image": "https://www.freetogame.com/g/540/overwatch-2-3.jpg"
    }
  ]
}

Скриншот

Главный экран

Ссылки

Мой процесс

Стек

  • Node
  • Express
  • Axios

Автор

games-library-backend's People

Contributors

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