Skip to content

dakdevs/zephyr-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zephyr API + Admin (Work In Progress)

What is Zephyr?

Zephyr is an API/Admin Framework for developers to serve a RESTful and/or GraphQL Interface based on a straight-forward API. It brings together the latest technologies and their speed to give you this functionality.

Dependent on Fastify for API, Pino for logging, Axios for external calls, and GatsbyJS for the admin panel.

Installation

yarn add zephyr-framework

Usage

Option 1: Just start it.

import zephyr from 'zephyr-framework';

zephyr().then(() => {
  console.log('Server has started.');
});

Option 2: Start the server and admin with custom fastify server and listen options.
For serverOptions and listenOptions see https://github.com/fastify/fastify/blob/master/docs/Server.md. They match Fastify's options schema.

import { startAdmin } from 'zephyr-framework';

startAdmin({
  serverOptions: {},
  listenOptions: {},
}).then(startServer => startServer({
  serverOptions: {},
  listenOptions: {},
})).then(() => {
  console.log('Server has started.');
});

To be implemented

About

An API/Admin Boilerplate Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published