Skip to content

Commit

Permalink
feat: switch to bun and elysia
Browse files Browse the repository at this point in the history
BREAKING CHANGE: switch to bun and elysia
  • Loading branch information
KaiVolland committed Jun 20, 2024
1 parent 932ef48 commit ab863e7
Show file tree
Hide file tree
Showing 17 changed files with 355 additions and 16,406 deletions.
8 changes: 7 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
node_modules/
node_modules
.github
.gitignore
Dockerfile
LICENSE
README.md
renovate.json
20 changes: 0 additions & 20 deletions .eslintrc.js

This file was deleted.

13 changes: 0 additions & 13 deletions .github/dependabot.yml

This file was deleted.

10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM node:lts-alpine
LABEL maintainer="[email protected]"
FROM oven/bun

COPY . .
RUN npm install

CMD [ "npm", "start" ]
RUN bun install

ENTRYPOINT ["bun"]

CMD ["src/index.ts"]
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ git clone https://github.com/geostyler/geostyler-rest.git
cd geostyler-rest
npm install
bun install
npm run start-dev
bun run dev
Open http://localhost:8888/geostyler-rest/api-docs/ in a browser
Open http://localhost:8888/api-docs/ in a browser
```

### Run unit tests

```
cd /path/to/this/checkout
npm run test
bun test
```

## Production setup
Expand All @@ -33,11 +33,11 @@ npm run test
```
cd /path/to/this/checkout
npm install
bun install
npm start
bun run src/index.ts
Open http://localhost:8888/geostyler-rest/api-docs/ in a browser
Open http://localhost:8888/api-docs/ in a browser
```

### Run with Docker
Expand All @@ -49,7 +49,7 @@ docker build -t geostyler_rest_server .
docker run -e NODE_API_PORT=9999 -p 9999:9999 geostyler_rest_server
Open http://localhost:9999/geostyler-rest/api-docs/ in a browser
Open http://localhost:9999/api-docs/ in a browser
```

## <a name="funding"></a>Funding & financial sponsorship
Expand All @@ -58,4 +58,3 @@ Maintenance and further development of this code can be funded through the
[GeoStyler Open Collective](https://opencollective.com/geostyler). All contributions and
expenses can transparently be reviewed by anyone; you see what we use the donated money for.
Thank you for any financial support you give the GeoStyler project 💞

Binary file added bun.lockb
Binary file not shown.
89 changes: 0 additions & 89 deletions index.js

This file was deleted.

Loading

0 comments on commit ab863e7

Please sign in to comment.