From ed627e6f22d3a7ecfa8fb8eb750fc86ae4e9507f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=A0s?= <86352901+LucasVbr@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:32:15 +0100 Subject: [PATCH] feat: Add .gitpod.yml --- .gitpod.yml | 19 +++++++++++++++++++ index.ts | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..6b91352 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,19 @@ +image: gitpod/workspace-bun + +tasks: + - name: Init a bun project and run + init: | + # Init a project if needed + if test ! -e package.json; then { + bun init -y + } fi + # Install dependencies + bun install + + command: | + # Run project + bun run index.ts + +ports: + - port: 3000 + onOpen: open-preview diff --git a/index.ts b/index.ts index 704abff..39053d9 100644 --- a/index.ts +++ b/index.ts @@ -39,6 +39,6 @@ function isValidDateParam(date: String): boolean { || date.match(/\d+/) !== null; } -app.listen(80, () => { +app.listen(3000, () => { console.log('Server is running on port 3000'); });