https://github.com/msfidelis/micro-api
Personal boilerplate to bootstrap simple applications and microservices :zap: :zap: :zap:
https://github.com/msfidelis/micro-api
api architecture boilerplate hapijs microservice nodejs rest
Last synced: 10 months ago
JSON representation
Personal boilerplate to bootstrap simple applications and microservices :zap: :zap: :zap:
- Host: GitHub
- URL: https://github.com/msfidelis/micro-api
- Owner: msfidelis
- License: mit
- Created: 2018-04-26T14:44:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:26:32.000Z (about 3 years ago)
- Last Synced: 2025-04-15T02:43:30.093Z (11 months ago)
- Topics: api, architecture, boilerplate, hapijs, microservice, nodejs, rest
- Language: JavaScript
- Homepage:
- Size: 228 KB
- Stars: 9
- Watchers: 3
- Forks: 20
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:zap: Micro API Boilerplate :zap:
> Personal boilerplate to bootstrap simple applications and microservices
## Project Architecture
```bash
.
├── 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
```bash
npm run dev
```
## Production Mode
```bash
npm start
```
## Running Tests
```bash
npm run unit-test
```
## Author
👤 **Matheus Fidelis**
* Twitter: [@fidelissauro](https://twitter.com/fidelissauro)
* Github: [@msfidelis](https://github.com/msfidelis)
## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](/issues).
## Show your support
Give a ⭐️ if this project helped you!