Skip to content

Repository files navigation

eliware.org

@eliware/project-template npm versionlicensebuild status

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

Requirements

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

Getting Started

  1. Clone this template:

    git clone https://github.com/eliware/project-template.git
    cd project-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

Development

  • Main entry: project-template.mjs

  • Start your app:

    node project-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.

Errors / 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

A template for starting new Node.js projects.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages