diff options
Diffstat (limited to 'examples/with-docker/apps/api/src/index.ts')
| -rw-r--r-- | examples/with-docker/apps/api/src/index.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/with-docker/apps/api/src/index.ts b/examples/with-docker/apps/api/src/index.ts new file mode 100644 index 0000000..fbb9fda --- /dev/null +++ b/examples/with-docker/apps/api/src/index.ts @@ -0,0 +1,9 @@ +import { createServer } from "./server"; +import { log } from "logger"; + +const port = process.env.PORT || 3001; +const server = createServer(); + +server.listen(port, () => { + log(`api running on ${port}`); +}); |
