@polylith/server 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AppRouter.js ADDED
@@ -0,0 +1,3 @@
1
+ export function router(app) {
2
+
3
+ }
@@ -0,0 +1,17 @@
1
+ import express from "express";
2
+ import http from 'node:http';
3
+ import https from 'node:https';
4
+ import cors from 'cors';
5
+ import cookieParser from 'cookie-parser';
6
+ import compression from 'compression';
7
+
8
+ export class PolylithServer {
9
+ constructor({
10
+ apps,
11
+ https,
12
+ cors,
13
+ compression,
14
+ } = options) {
15
+
16
+ }
17
+ }
package/index.js ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@polylith/server",
3
+ "version": "0.0.1",
4
+ "description": "This is the basic polylith http/https server. It is build on top of Express.js",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "start": "node server.js"
9
+ },
10
+ "author": "Glenn Anderson",
11
+ "license": "MIT",
12
+ "dependencies": {
13
+ "compression": "^1.7.4",
14
+ "cookie-parser": "^1.4.6",
15
+ "cors": "^2.8.5",
16
+ "express": "^4.18.2"
17
+ }
18
+ }
package/router.js ADDED
File without changes