This is a demo of using Deno along with Drizzle as the ORM data layer and Hono as the web server.
- Deno or Devcontainers
There are 2 different ways to get up and running. Devcontainers is the preferred method as it will have prerequisites automatically installed as well as environment variables and dependencies setup.
Before either method, you will need to create a .env
file in the root of the project with the following content:
DATABASE_URL=postgresql://docker:docker@localhost:5432/drizzle_demo
- Open the project from devcontainer capable IDE such as VSCode.
- Run
deno task dev
to start the server.
- Run
deno task initialize
to install dependencies; database, migrate, and seed the database. - Run
deno task dev
to start the server.