Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabervitale/fastify-service-template
Nodejs microservice template built with typescript, fastify swagger, jest and more...
https://github.com/fabervitale/fastify-service-template
api fastify microservice node swagger typescript
Last synced: 13 days ago
JSON representation
Nodejs microservice template built with typescript, fastify swagger, jest and more...
- Host: GitHub
- URL: https://github.com/fabervitale/fastify-service-template
- Owner: FaberVitale
- License: mit
- Created: 2020-06-19T15:34:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T11:59:59.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T17:41:23.762Z (about 1 month ago)
- Topics: api, fastify, microservice, node, swagger, typescript
- Language: JavaScript
- Homepage:
- Size: 2.63 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# timestamp service
## Description
Proof of concept of a microservice that runs in [node 14](https://nodejs.org/en/) using the following stack:
- [typescript](https://www.typescriptlang.org/)
- [fastify](https://www.fastify.io/)
- [swagger](https://swagger.io/)
- [jest](https://jestjs.io/)
- [docker](https://www.docker.com/)
- [eslint](https://eslint.org/)
## Scripts
- `npm run dev`: starts server in dev mode that restars on ./src changes:
- server is be `localhost:5000`, try `http://localhost:5000/api/now`.
- docs are available on http://localhost:5000/api/now/documentation
- `npm run build`: build for production.
- `npm run start`:starts server in production mode.
- `npm dev:debug`: starts server in dev mode with debugger attached, try `chrome://inspect/#devices` in chrome.
- `npm run test`: runs tests.
## Docker
- build image:`docker build --tag timestamp-service: .`
- run dockerize app: `docker run --rm -p 5000:5000 timestamp-service:`
## Requirements
```
"node": "^14.0.0",
"npm": "^6.14.4"
```## License
[MIT](./LICENSE)