All Projects → metarhia → Example

metarhia / Example

Licence: MIT license
Metarhia application example for Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to Example

Nodejsstarterkit
Starter Kit for Node.js v14.x, minimum dependencies 🚀
Stars: ✭ 348 (+136.73%)
Mutual labels:  cluster, project, starter-kit
sandboxed-fs
Sandboxed Wrapper for Node.js File System API
Stars: ✭ 41 (-72.11%)
Mutual labels:  metarhia, sandboxing
common
Metarhia Common Library
Stars: ✭ 55 (-62.59%)
Mutual labels:  cluster, metarhia
Webvr Webpack Boilerplate
A webvr multi-scenes Single-page application for three.js, webpack
Stars: ✭ 47 (-68.03%)
Mutual labels:  project, starter-kit
NodeServer
Compare node.js servers
Stars: ✭ 35 (-76.19%)
Mutual labels:  cluster, project
ego
Alter Ego: run Linux desktop applications under a different local user
Stars: ✭ 90 (-38.78%)
Mutual labels:  sandboxing, isolation
impress-cli
Impress Application Server Command line interface
Stars: ✭ 25 (-82.99%)
Mutual labels:  cluster, metarhia
noroutine
Goroutine analogue for Node.js, spreads I/O-bound routine calls to utilize thread pool (worker_threads) using balancer with event loop utilization. 🌱
Stars: ✭ 86 (-41.5%)
Mutual labels:  metarhia, threads
Contracts
Metarhia core docs and contracts specifications 📒
Stars: ✭ 26 (-82.31%)
Mutual labels:  metarhia, metaserverless
simplenetes
The sns tool is used to manage the full life cycle of your Simplenetes clusters. It integrates with the Simplenetes Podcompiler project podc to compile pods.
Stars: ✭ 731 (+397.28%)
Mutual labels:  cluster
deploy shard mongodb
This repository has a set of scripts and resources required for deploying MongoDB replicated sharded cluster.
Stars: ✭ 17 (-88.44%)
Mutual labels:  cluster
nlp-cheat-sheet-python
NLP Cheat Sheet, Python, spacy, LexNPL, NLTK, tokenization, stemming, sentence detection, named entity recognition
Stars: ✭ 69 (-53.06%)
Mutual labels:  starter-kit
napi-thread-safe-callback
C++ utility class to perform callbacks into JavaScript from any thread
Stars: ✭ 62 (-57.82%)
Mutual labels:  threads
dctb-web-project
Repositório informativo com diretrizes empíricas para o desenvolvimento de um Projeto Web.
Stars: ✭ 59 (-59.86%)
Mutual labels:  project
connect-or-cut
Simple network sandbox for Unix and Windows
Stars: ✭ 19 (-87.07%)
Mutual labels:  sandboxing
skein
A tool and library for easily deploying applications on Apache YARN
Stars: ✭ 128 (-12.93%)
Mutual labels:  cluster
skmeans
Super fast simple k-means implementation for unidimiensional and multidimensional data.
Stars: ✭ 59 (-59.86%)
Mutual labels:  cluster
webpack-starter
A very simple project starter with webpack composed with the latest features
Stars: ✭ 19 (-87.07%)
Mutual labels:  starter-kit
ideas-for-project-names-starting-with-re
No description or website provided.
Stars: ✭ 27 (-81.63%)
Mutual labels:  project
ATtiny13-TinyUPS
Uninterruptible Power Supply
Stars: ✭ 92 (-37.41%)
Mutual labels:  project

Metarhia Example Server for Node.js

travis license

Concept

This is a logical continuation of Node.js Starter Kit from How Programming Works software development course moving all system code to dependencies, namely using Metarhia technology stack.

You can begin development from this starter kit but having in mind future production deployment and further moving application to Metaserverless cloud based on Metarhia technology stack and Node.js.

The purpose of this starter kit is to show best practices for Metarhia and Metaserverless, to give structure and architecture example, to illustrate simplicity and efficiency of mentioned technologies.

All parts of this implementation are optimized for reliability, scalability, performance and security. So if you need readability and want to study code, let's start with Node.js Starter Kit.

Feature list

  • Serve API with auto routing, HTTP(S), WS(S)
  • Server code live reload with file system watch
  • Auto dependency loader and plugins
  • Graceful shutdown and application reload
  • Minimum code size and dependencies
  • Code sandboxing for security and context isolation
  • Multi-threading for CPU utilization and isolation
  • Serve multiple ports in threads
  • Serve static files with memory cache
  • Application configuration
  • Simple logger and redirection from console
  • Database access layer (Postgresql)
  • Client persistent sessions
  • Unit-tests and API tests example
  • Request queue timeout and size
  • API parallel execution concurrency
  • API method execution timeout
  • Load balancing for scaling
  • Prototype polution prevention
  • Better code isolation

Usage

  • You need node.js v12.5.0 or later (v14 prefered)
  • Fork and clone this repository (optionally subscribe to repo changes)
  • Run npm i to install dependencies and generate RSA certificate
  • Remove unneeded dependencies if your project doesn't require them
  • Add your license to LICENSE file but don't remove starter kit license
  • Start your project modifying this starter kit
  • Before running server initialize the DB:
    • First of all, make sure you have PostgreSQL installed (prefer 12.x).
    • Run database initialization script: db/setup.sh
  • Run project: node server.js and stop with Ctrl+C
  • Ask questions in https://t.me/nodeua and post issues on github

License

Copyright (c) 2020-2022 Metarhia contributors. This starter kit is MIT licensed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].