HowProgrammingWorks/NodejsStarterKit
概要
Node.js 16以降に対応したスターターキット。依存関係は最小限 🚀
システム・インフラ計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルNode.js Starter Kit
Concept
You can begin development from this Starter Kit, but it is not for production usage. The purpose of this Starter Kit is to show simplicity, basic concepts, give structure and architecture examples. All parts of this implementation are optimized for readability and understanding, but not for performance and scalability.
So it is good for development and education. However, for production deployment, you may need the Metarhia Example App an open-source application server on the top of Node.js.
Feature list
- Pure node.js and framework-agnostic approach
- Minimum code size and dependencies
- Layered architecture: core, domain, API, client
- Protocol-agnostic API with auto-routing, HTTP(S), WS(S)
- Graceful shutdown
- Code sandboxing for security, dependency injection and context isolation
- Serve multiple ports
- Serve static files with memory cache
- Application configuration
- Simple logger
- Database access layer (Postgresql)
- Persistent sessions
- Unit-tests and API tests example
- Request queue with timeout and size
- Execution timeout and error handling
Requirements
- Node.js v16 or later
- Linux (tested on Fedora, Ubuntu, and CentOS)
- Postgresql 9.5 or later (v12 preferred)
- OpenSSL v1.1.1 or later
- certbot (recommended but optional)
Usage
- Fork and clone this repository (optionally subscribe to repo changes)
- Remove unneeded dependencies if your project doesn't require them
- Run
npm ci --productionto install dependencies and generate certificate - Add your license to
LICENSEfile but don't remove starter kit license - Start your project by modifying this starter kit
- Run project with
node server.jsand stop with Ctrl+C
Help
Ask questions at https://t.me/nodeua and post issues on github.
License
Copyright (c) 2020-2023 How.Programming.Works contributors. This starter kit is MIT licensed.
関連プロジェクトを探す
読み込み中…