Gathering detailed insights and metrics for @liquicode/lib-server-kit
Gathering detailed insights and metrics for @liquicode/lib-server-kit
Gathering detailed insights and metrics for @liquicode/lib-server-kit
Gathering detailed insights and metrics for @liquicode/lib-server-kit
npm install @liquicode/lib-server-kit
Typescript
Module System
Min. Node Version
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
26
6
(v0.0.25)
This library has been deprecated.
Please refer to the following projects for current ServerKit development:
Thank You!
This purpose of this library is to facilitate the development of API and Application servers built on NodeJS. ServerKit handles all of the plumbing to get your services online and usable.
ServerKit is easy to use, provides a simple way to get started with a new web project, and has many features to assist you in developing and debugging your services.
When starting a new web project, I had this big ball of code that I would start with. Then, I would spend time and energy doing search/replaces within the code, removing stuff I didn't need, adding stuff I did need, etc. It was either that, or start from scratch, or use someone else's big ball of code generated from their tools. I found that this time and energy often overwhelmed much of the motivation or curiosity which inspired the original idea in the first place. Unable to find an easier way to get started, I built ServerKit.
ServerKit bundles together a number of technologies that allow you to write services that work over the web (http), web sockets, message queues, and even the command line.
Transport Agnostic Services
You write the hosted service by defining service functions and describing how to call them. ServerKit manages the interactions needed to authenticate users, authorize function invocations, and transfer data between client and server. Your service functions are transport-agnostic.
Dynamic Configuration System
ServerKit has a vast number of features which are all controlled through ServerKit's configuration system. Configuration settings can be supplied in code and/or a set of confgiuration files. All configuration settings have sensible defaults which means that you need only to customize the settings of features that you are using. All other ServerKit features will work just fine using their defaults. You can provide configuration blocks and defaults for services that you write.
Conventions Used
ServerKit requires the use of an ApplicationFolder. The path to this folder is provided when creating a new ServerKit Server. This location stores authored services, configuration files, and any ServerKit generated content. All filenames or paths that are specified in the configuration settings, are specified relative to the ApplicationFolder. You can use ServerKit to generate configuration files, client api files, and even starter websites. All of these generated files will also be written under the ApplicationFolder.
Install via NPM:
1npm install @liquicode/lib-server-kit
1// Include the library in your source code 2const SERVER_KIT = require( '@liquicode/lib-server-kit' ); 3 4// Create a new server by supplying the Server's name and its root folder. 5let server = SERVER_KIT.NewServer( 'MyServer', __dirname ); 6// - The server is created. 7// - Configuration Defaults and Settings have been calculated. 8// - No Services or Transports have been initialized. 9 10// Initialize the server 11await server.Initialize(); 12// - Services and Transports are initialized. 13// - Services and Transports are ready for internal consumption. 14 15// Start the server 16await server.Startup(); 17// - Services and Transports are started. 18// - Services can be called remotely via Transports (e.g. Web, WebSocket). 19 20// Wait for some signal to stop the server ... 21 22// Stop the server 23await server.Shutdown();
Server Functions
Development Features
admin
, super
, public
, and anon
.Text
transport to debug and test your services from the command line.Text
transport to develop a CLI for your services.StorageService
base class to handle CRUD operations for user-owned data.
ApplicationService
to expose functions to your clients.
Web
transport has a "view core" feature which generates a fully functioning web site for you.
StorageService
.Support
(wip)
(wip)
No vulnerabilities found.
No security vulnerabilities found.