GithubHelp home page GithubHelp logo

swag666baby / nuvem-azul-api Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 2.79 MB

an API designed to search, add and delete torrents from the Nuvem Azul database.

License: MIT License

TypeScript 100.00%
api crud database nodejs torrent typescript

nuvem-azul-api's Introduction

necessary

typescript

npm install -g typescript

running

git clone https://github.com/Swag666baby/nuvem-azul-api
cd nuvem-azul-api
npm install
npm run build
npm start

examples

โ€ข to add one game ๐Ÿ–Š๏ธ

import axios from "axios";

const addGame = async() => {
    const post = await axios.post("http://localhost:4000/add", 
    {
        "title": "Grand Theft Auto VI",
        "magnet": "magnet:?xt=urn:btih:00712d7327b47hf7hh8h0hf04fh0f",
        "page": "12",
        "repacker": "Xatab",
        "fileSize": "340 GB",
        "uploadDate": "2027-08-1 23:00:00.000",
        "createdAt": "2024-03-21 02:03:49.000",
        "updatedAt": "2024-03-21 02:03:49.000"
    })
    console.log(post.data)
}

โ€ข to delete game ๐Ÿ—‘

import axios from "axios";

const deleteGame = async() => {
    const post = await axios.post("http://localhost:4000/delete", {"id": 1})
    console.log(post.data)
}

โ€ข to search games ๐Ÿ”Ž

The search can be done by both name and id

import axios from "axios";

const searchGame = async() => {
    const request = await axios.get("http://localhost:4000/search?q=stardew")
    console.log(request.data)
}

nuvem-azul-api's People

Contributors

swag666baby avatar

Stargazers

Daddy avatar Puff avatar Frog avatar  avatar

Watchers

 avatar

Forkers

daddyband

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.