Skip to content

Commit

Permalink
chore: add development environment (#2095)
Browse files Browse the repository at this point in the history
* feat: add development environment

* refactor: update README

* refactor: update README and run yarn denoify

* refactor: update CONTRIBUTING
  • Loading branch information
jarqvi authored Jan 28, 2024
1 parent 8ad3b61 commit 4031fa8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ RUN curl -fsSL https://bun.sh/install | bash

# Install Lagon
RUN yarn global add @lagon/cli esbuild

WORKDIR /hono
18 changes: 18 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'

services:
hono:
build: .
container_name: hono
volumes:
- ../:/hono
networks:
- hono
command: bash
stdin_open: true
tty: true
restart: 'no'

networks:
hono:
driver: bridge
8 changes: 8 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,11 @@ It may be under the "honojs organization" and distributed in the `@honojs` names

The monorepo "[honojs/middleware](https://github.com/honojs/middleware)" manages these middleware.
If you want to do it, create the issue about your middleware.

## Local Development

```
git clone git@github.com:honojs/hono.git && cd hono/.devcontainer && yarn install
docker compose up -d --build
docker compose exec hono bash
```

0 comments on commit 4031fa8

Please sign in to comment.