Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.