mirror of
https://github.com/LucasVbr/fcc-timestamp-microservice.git
synced 2026-05-13 17:21:48 +00:00
feat: Add .gitpod.yml
This commit is contained in:
+19
@@ -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
|
||||||
@@ -39,6 +39,6 @@ function isValidDateParam(date: String): boolean {
|
|||||||
|| date.match(/\d+/) !== null;
|
|| date.match(/\d+/) !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
app.listen(80, () => {
|
app.listen(3000, () => {
|
||||||
console.log('Server is running on port 3000');
|
console.log('Server is running on port 3000');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user