Coder Social home page Coder Social logo

tryb3l / nodejsstarterkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from howprogrammingworks/nodejsstarterkit

1.0 0.0 0.0 506 KB

Node.js Starter Kit with all latest Node.js v14 features

Home Page: http://metarhia.com

License: MIT License

JavaScript 92.43% HTML 3.03% CSS 4.15% Shell 0.39%

nodejsstarterkit's Introduction

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

  1. Fork and clone this repository (optionally subscribe to repo changes)
  2. Remove unneeded dependencies if your project doesn't require them
  3. Run npm ci --production to install dependencies and generate certificate
  4. Add your license to LICENSE file but don't remove starter kit license
  5. Start your project by modifying this starter kit
  6. Run project with node server.js and 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.

nodejsstarterkit's People

Contributors

tshemsedinov avatar lundibundi avatar sarnakov avatar tyanas avatar murka avatar mihmul83 avatar belochub avatar amelnik92f avatar

Stargazers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.