Skip to content

Repository files navigation

eliware.org

@eliware/documentation-template licensebuild status

Documentation: docs · specifications · examples · release notes

A starter template for new Node.js projects. Use this as a foundation for your next application or service.


Table of Contents

Features

  • Pre-configured for Node.js (ESM)
  • Environment variable support via dotenv
  • Logging and signal handling via @eliware/common
  • Jest for testing
  • MIT License

Documentation

Keep user-facing documents under docs/, index every document from docs/README.md, and keep policy and structured authority in their designated JSON sources.

Contents

Document scope, audience, ownership, navigation, contribution requirements, link validation, and support for every published documentation surface.

Requirements

  • Node.js 26 or newer
  • A new project directory and environment appropriate to the application you build from this template

Setup

  1. Clone this template:

    git clone https://github.com/eliware/documentation-template.git
    cd documentation-template
    rm -rf .git
    git init
    npm install
  2. Update project details:

    • Edit package.json (name, description, author, etc.)
    • Update this README.md as needed
    • Change the license if required

Usage

Use this repository as a starting point: clone it, rename the package and entrypoint, configure .env, and replace the starter implementation.

Development

  • Main entry: documentation-template.mjs

  • Start your app:

    node documentation-template.mjs
  • Add your code in new files and import as needed.

Testing

  • Run tests and coverage-gap checks with:

    npm test
    npm run test:gaps
    npm run lint
     npm run pack
  • Add your tests in the __tests__ folder or alongside your code.

Template inheritance

Keep the template relationship when cloning specialized templates. Use origin for the new project and upstream for this template, then fetch and review upstream changes before merging.

Customization

  • Replace or extend the logging and signal handling as needed.
  • Add dependencies and scripts to fit your project.
  • Remove or modify template files and sections.

Troubleshooting

This repository is a starter application, not a production service. Replace placeholder metadata and application logic after cloning. Keep .env local, verify configuration before startup, and use registerSignals/registerHandlers for explicit graceful shutdown and error handling.

Security

Never commit .env, tokens, passwords, private keys, or credential-bearing URLs. Store secrets in the deployment environment or secret manager, and review dependencies and permissions before deploying a derived project.

Support

For help, questions, or to chat with the author and community, visit:

Discordeliware.org

eliware.org on Discord

License

MIT © 2025 Eli Sterling, eliware.org

Links

About

Eliware documentation repository template

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages