Skip to content

Example starterkit for creating a node.js service, fit with generators!

Notifications You must be signed in to change notification settings

chrisprijic/nodejs-service-starterkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodejs Service Starter-Kit

A starter-kit to get you started with creating services using node.js!

Utilize Clean Architecture: Using this setup, separate your concerns and develop software in an extensible way.

Installation

  1. Clone this repository
  2. remove the .git folder
  3. ???
  4. Profit!

Commands

npm start              // runs index.js using es-modules (node -r esm index.js)
npm test               // runs tests using jest (anything -test.js)
npm run gen:adapter    // prompts for adapter generation
npm run gen:controller // prompts for controller generation
npm run gen:use-case   // prompts for use-case generation

Tech Stack

express: Express for routing and HTTP Server. Middleware included when used; cors, body-parser (json), compression, and status-moniotor. Extensible statuses through HTTP-Status.

knex: Query-generation library. Chosen over an ORM to provide more capabilities and faster queries.

jest: Testing library. Babel added to repo to support es-modules while testing. Unification with the rest of testing JS code for Orbee.

hygen: templating library, used for generating scaffolds for code (adapters, controllers, use-cases, etc.).

Questions?

Submit an issue!

About

Example starterkit for creating a node.js service, fit with generators!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published