Skip to content

PATATESUPREME/HapiBoilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hapi-Boilerplate

Boilerplate Hapi used for the TP of the LP and now customized by Kévin DESSIMOULIE to be a user manager with a connection.

Launch It

nodejs server.js

Attention : The value of NODE_ENV can change the configuration of the server.

Next, go to :

http://127.0.0.1:3000

and you should have :

{"result":"Welcome on hapi-boilerplate, your next step is on /documentation"}

Project's Structure

Hapi-boilerplate
├── app                         # App folder
│   ├── endpoints               # Routes
│   ├── handlers                # Handlers
│   ├── models                  # Project models
│   ├── plugins                 # Internal plugins
│   ├── schemas                 # Joi validation schemas
│   └── handlers.js             # File loading the handlers
├── config                      # Config folder
│   ├── environments            # Environments folder
│   │   ├── all.js              # Common variables + environment ones
│   │   ├── development.js      # Dev variables
│   │   ├── local.js            # Local variables
│   │   └── production.js       # Production variables
│   ├── manifest                # Folder containing manifests configurations
│   │   ├── models.js           # Loads the model k7
│   │   ├── plugins.js          # Loads project's and system plugins
│   │   ├── routes.js           # Loads the routes
│   │   └── server.js           # Serveur configurations
│   └── manifest.js             # Composing final manifest to initialise Hapi
├── node_modules                # Folder with all external libraries recovered by NPM
├── package.json                # Project's dependencies
├── readme.md                   # The file you are reading
└── server.js                   # Project's launching file

About

[Node Js] Hapi Boilerplate for the IUT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published