https://github.com/johnmcguin/hapi-ts-mongo
An API starter built on Hapi, TypeScript, and MongoDB
https://github.com/johnmcguin/hapi-ts-mongo
api api-rest hapi hapijs mongodb node nodejs starter starter-app typescript
Last synced: 4 months ago
JSON representation
An API starter built on Hapi, TypeScript, and MongoDB
- Host: GitHub
- URL: https://github.com/johnmcguin/hapi-ts-mongo
- Owner: johnmcguin
- Created: 2018-07-04T18:06:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-05T22:42:41.000Z (almost 8 years ago)
- Last Synced: 2025-04-03T17:53:42.971Z (about 1 year ago)
- Topics: api, api-rest, hapi, hapijs, mongodb, node, nodejs, starter, starter-app, typescript
- Language: TypeScript
- Homepage:
- Size: 38.1 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hapi-ts-mongo
An application starter built on Hapi, TypeScript, and MongoDB. This is not a masterpiece by any means and has not yet been validated in production, but try it out, have fun and add do it!
## Development
* Clone down the repository.
* Install npm modules
```
npm i
```
* Run development server
```
npm run dev
```
* Write features! All features written as [Hapi plugins](https://hapijs.com/tutorials/plugins?lang=en_US) in the src/plugins directory. Make sure to export your feature plugins and add them to your src/plugins/index.ts features array
## Deployment
Build the project with the following command:
```
npm run build:ts
```
Serve built project with the following command:
```
npm run serve
```
### Prerequisites
* Node.js
* MongoDB
## Built With
* [TypeScript](https://www.typescriptlang.org/)
* [Node](https://nodejs.org/en/)
* [Hapi](https://hapijs.com/)
* [MongoDB](https://www.mongodb.com/)
## Contributing
PRs welcome :)
## License
ISC