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-26 13:32:21 +02:00
.github/workflows Update main.yml 2024-06-22 09:16:06 +02:00
assets Add the "folder" directory in "testdir" directory in "assets" directory with a .gitkeep file 2024-08-26 09:23:14 +02:00
src Fix the sendStatistics.js file 2024-08-26 13:32:21 +02:00
templates Add SVR.JS name and documentation URL to svrjs.json file. 2024-08-24 17:13:59 +02:00
tests/utils Lint out the codebase 2024-08-25 19:17:54 +02:00
utils Lint out svrpasswd.js script 2024-08-26 07:38:42 +02:00
.gitignore The build script now builds SVR.JS .zip archive. 2024-08-23 17:18:18 +02:00
esbuild.config.js Lint out the build script 2024-08-26 09:33:02 +02:00
eslint.config.js Change ESLint configuration to use CommonJS modules instead of ES modules. 2024-08-25 14:27:22 +02:00
jest.config.js Rewritten SVR.JS from scratch - the build system for the new SVR.JS is set up, but the source is just placeholders. 2024-08-23 17:05:10 +02:00
LICENSE Add LICENSE file 2024-08-26 08:00:04 +02:00
package-lock.json Add OCSP stapling support 2024-08-25 17:59:52 +02:00
package.json Rename utilities directory to utils. 2024-08-26 07:35:01 +02:00
README Add README 2024-08-26 09:59:49 +02:00
svrjs.json Implement listeningMessage() function, around with public IP obtaining 2024-08-26 07:00:08 +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