/server-games

Exercícios de Node.js para a Semana 8 do curso de Back-end da {reprograma}

Primary LanguageJavaScript

API de jogos

Projeto prático de desenvolvimento de APIs com Node.js e Express. Desenvolvido na 8ª semana do curso de Back-end da {reprograma} sob a orientação da professora Alessandra do Carmo.

Status do Projeto: Concluido ✔️

Linguagens e Tecnologias utilizadas

JavaScript Nodejs NPM


Rodando o projeto

No terminal, clone o projeto:
git clone https://github.com/luzialeticia/server-games.git

Entre na pasta do projeto:
cd server-games

Instale as dependências:
npm install

Execute:
npm start

Contratos

Utilizando método GET

Recurso Descrição
/jogos Retorna todas os jogos da API
    [
        {
            "id": 1070,
            "nome": "Super Mario World",
            "genero": "Plataform",
            "plataformas": "Wii, New Nintendo 3DS, Wii U, Super Nintendo Entertainment System (SNES)",
            "capa": "https://images.igdb.com/igdb/image/upload/t_cover_big/co23jy.jpg"    
       }, ...
    ]
Recurso Descrição
/jogos/:id Retorna apenas os dados do jogo com um determinado id
    {
        "id": 1070,
        "nome": "Super Mario World",
        "genero": "Plataform",
        "plataformas": "Wii, New Nintendo 3DS, Wii U, Super Nintendo Entertainment System (SNES)",
        "data_lancamento": 659145600,
        "slug": "super-mario-world",
        "resumo": "Super Mario World is a jump-and-run platformer and a follow-up to Super Mario Bros. 3. The game retains many of the elements that debuted in Super Mario Bros. 3, such as the world map and Koopaling boss fights, while introducing a large variety of new gameplay mechanics, such as an expanded and less linear world map and the ability to save the game. Much of the game\u0027s introduced characters, game mechanics, and artistic themes influenced later titles in the Mario series. The game was released to best-selling status on the SNES, received large amounts of critical acclaim, and is commonly seen on Nintendo\u0027s best games of all times on various critic listings.",
        "empresa":"Nintendo EAD",
        "capa": "https://images.igdb.com/igdb/image/upload/t_cover_big/co23jy.jpg"    
    }