Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myty/deno-drizzle-demo
This is a demo of using Deno along with Drizzle as the ORM data layer and Hono as the web server.
https://github.com/myty/deno-drizzle-demo
deno devcontainer drizzle hono typescript
Last synced: 16 days ago
JSON representation
This is a demo of using Deno along with Drizzle as the ORM data layer and Hono as the web server.
- Host: GitHub
- URL: https://github.com/myty/deno-drizzle-demo
- Owner: myty
- Created: 2024-01-15T22:05:29.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T02:14:26.000Z (28 days ago)
- Last Synced: 2024-10-25T10:37:49.527Z (23 days ago)
- Topics: deno, devcontainer, drizzle, hono, typescript
- Language: TypeScript
- Homepage:
- Size: 363 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deno+Drizzle Demo
This is a demo of using Deno along with Drizzle as the ORM data layer and Hono as the web server.
## Prerequisites
- Deno or Devcontainers
## Getting Started
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:
```env
DATABASE_URL=postgresql://docker:docker@localhost:5432/drizzle_demo
```### With Devcontainers
1. Open the project from devcontainer capable IDE such as VSCode.
2. Run `deno task dev` to start the server.### Without Devcontainers
1. Run `deno task initialize` to install dependencies; database, migrate, and seed the database.
2. Run `deno task dev` to start the server.