Skip to content
Personal boilerplate to bootstrap simple applications and microservices ⚡️ ⚡️ ⚡️
JavaScript Dockerfile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config env Jul 18, 2018
libs security updates and fibonacci Aug 12, 2019
modules security updates and fibonacci Aug 12, 2019
test/unit/libs Unit Tests May 1, 2018
.dockerignore database structure Apr 26, 2018
.gitignore system example Apr 26, 2018
Dockerfile crud structure Apr 26, 2018
LICENSE Initial commit Apr 26, 2018
README.md Update README.md May 12, 2018
docker-compose.yml crud mock Apr 26, 2018
index.js env Jul 18, 2018
package-lock.json security updates and fibonacci Aug 11, 2019
package.json env Jul 18, 2018

README.md

Micro API Boilerplate

Personal boilerplate to bootstrap simple applications and microservices

Project Architecture

.
├── configs             # Server configs
│   ├── default.json	# Environment variables file
│   ├── plugins.js		# HapiJS Plugins Config
│   └── server.js		# HapiJS Server Config
├── index.js			# Server Entrypoint
├── libs				# Libraries Folder
├── modules				# Modules / Feature Folder
│   └── pets			# Module name
│       ├── models		# Models of the context
│       │   └── Pet.js	# Model name
│       ├── routes		# Routes of context
│       │   └── crud.js	# Group of routes
│       ├── services	# Services of Context
│       │   └── crud.js	# Crud service example
│       └── views		# Views Folder
└── test				# Tests folder
    └── unit			# Unit Tests
        └── libs		# Library Tests
            └── system.test.js

Development Environment

npm run dev

Production Mode

npm start

Running Tests

npm run unit-test
You can’t perform that action at this time.