1
0
Fork 0
forked from svrjs/svrjs
SVR.JS - a web server running on Node.JS
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2024-08-28 07:59:26 +02:00
assets First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
node_modules First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
src First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
templates First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
tests/utils First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
utils First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
.gitignore First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
esbuild.config.js First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
eslint.config.js First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
jest.config.js First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
LICENSE Update to SVR.JS 3.12.3 2023-12-30 23:50:11 +01:00
package-lock.json First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
package.json First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
README First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00
svrjs.json First SVR.JS 4.0.0 beta version - SVR.JS 4.0.0-beta1 2024-08-28 07:59:26 +02:00

This repository contains SVR.JS source code and its build system.

Before doing anything, run "npm install".
To build SVR.JS along with the zip archive, run "npm run build".
To check SVR.JS code for errors with ESLint, run "npm run lint".
To fix and beautify SVR.JS code with ESLint and Prettier, run "npm run lint:fix".
To run SVR.JS from the "dist" folder, run "npm start".
To test SVR.JS itself, run "npm run dev". This removes existing configuration.
To perform unit tests with Jest, run "npm test".

Structure:
 - assets - files to copy into dist folder and to the archive
 - dist - contains SVR.JS, assets, and SVR.JS utiltiies
 - generatedAssets - assets generated by the build script
 - out - contains SVR.JS zip archive
 - src - contains SVR.JS source code
   - index.js - entry point
   - handlers - handlers for servers
   - middleware - built-in middleware for servers
   - res - resources
   - utils - utility functions
 - templates - EJS templates for build script to use
 - tests - Jest unit tests
   - utils - unit tests for utility functions
 - utils - SVR.JS utilities (each utility has a single file)
 - esbuild.config.js - the build script
 - eslint.config.js - ESLint configuration
 - jest.config.js - Jest configuration
 - svrjs.json - SVR.JS version, name, documentation URL, and statistics server collection endpoint URL