Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
/ djp-api Public archive

Wrapper module for API project using fastify.

Notifications You must be signed in to change notification settings

nasyarobby/djp-api

Repository files navigation

DJP-API

alt text

alt text

Wrapper API Server menggunakan Fastify.

installing github module as npm module

git clone https://github.com/nasyarobby/djp-api/ djp-api
mkdir new-api-project
cd new-api-project
npm init -y
npm install ../djp-api
code index.js

atau

npm install https://github.com/nasyarobby/djp-api/

cara menggunakan module (index.js)

const DJPApi = require("djp-api");

const app = new DJPApi();
app.start();
const config = {
  port: 3000,
  address: '0.0.0.0',
  service: {
      index(req, res) { 
        res.box('Message', { namaService: 'DJP-API' });
      }
  },
  specificationFilePath: `${__dirname}/swagger.json`,
};

const app = new DJPApi(config);

About

Wrapper module for API project using fastify.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published