Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lswith/hello-world-ts
Simple Hello world web server
https://github.com/lswith/hello-world-ts
Last synced: about 1 month ago
JSON representation
Simple Hello world web server
- Host: GitHub
- URL: https://github.com/lswith/hello-world-ts
- Owner: lswith
- Created: 2024-07-16T01:17:19.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-17T05:04:47.000Z (6 months ago)
- Last Synced: 2024-10-09T13:22:55.601Z (3 months ago)
- Language: TypeScript
- Size: 53.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hello-world-js
This is a simple application for checking out features in datadog.
It has been setup with:
- graphql
- basic /hello endpoint
- a /error endpoint to view errors
- pino request logging
- datadog apm## Running locally
To get datadog working locally, you will need to install the agent on your computer: https://docs.datadoghq.com/agent/basic_agent_usage/osx/
You will also need an api key. This can be created in the organization settings when logging into datadog.
You will need to make sure the agent is configured with:
```
api_key: ...
site: us3.datadoghq.com
logs_enabled: true```
You will also need to write a file to `/opt/datadog-agent/etc/conf.d/file.d/conf.yaml` which has:
```
#Log section
logs:
- type: file
path: /hello-world-ts/logs/app.log
service: hello-world
source: file
```You can then run `yarn dev` and start using the application.