Giter Club home page Giter Club logo

api-service's Introduction

Artwork from Nuxt3

🧪 整理稳定、快速、好用的 API 接口


🖥 Online Preview

size size CI License

Preview

KZ API

Features

  • 接口文档
  • 接口限流
  • 接口缓存
  • 接口测试
  • 接口计次
  • 接口监控

Usage

git clone https://github.com/kuizuo/api-service
cd api-service
pnpm i

Development

pnpm dev

Build

pnpm build

Develop

Server

这里使用 pm2 进行部署,在 .output 同级目录下创建 ecosystem.config.js 文件:

module.exports = {
  apps: [
    {
      name: 'KZ_API',
      exec_mode: 'cluster',
      instances: '1',
      env: {
        NITRO_PORT: 8040,
        NITRO_HOST: '127.0.0.1',
        NODE_ENV: 'production',
      },
      script: './.output/server/index.mjs',
    },
  ],
}

接着执行 pm2 start ecosystem.config.js 即可。

Vercel

转到 Vercel 并选择你的项目,点击 "Deploy",您的应用程序将在一分钟内上线。

Netlify

转到 Netlify 并选择您的项目,点击 "Deploy site",您的应用程序将在一分钟内上线。

Why

我个人经常与 API 接口打交道,因而收集了些常用的 api。但这些 api 接口调用方式各不相同,所以编写这个项目为了将这些接口整合到一起,进行易用性的封装,使其更易调用。

API 接口均来自网络,如有侵权,请联系作者删除!

License

MIT

api-service's People

Contributors

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