Skip to content

Nlea/espresso-martinyl

Repository files navigation

🪿 HONC

This is a project created with the create-honc-app template.

Learn more about the HONC stack on the website or the main repo.

Getting started

Make sure you have Neon set up and configured with your database. Create a .dev.vars file with the DATABASE_URL key and value (see: .dev.vars.example).

Project structure

├── src
│   ├── index.ts # Hono app entry point
│   └── db
│       └── schema.ts # Database schema
├── seed.ts # Optional seeding script
├── .dev.vars.example # Example .dev.vars file
├── wrangler.toml # Cloudflare Workers configuration
├── drizzle.config.ts # Drizzle configuration
├── tsconfig.json # TypeScript configuration
└── package.json

Commands

Run the migrations and (optionally) seed the database:

# this is a convenience script that runs db:generate, db:migrate, and db:seed
npm run db:setup

Run the development server:

npm run dev

Developing

When you iterate on the database schema, you'll need to generate a new migration and apply it:

npm run db:generate
npm run db:migrate

Deploying

Set your DATABASE_URL secret (and any other secrets you need) with wrangler:

npx wrangler secret put DATABASE_URL

Finally, change the name of the project in wrangler.toml to something appropriate for your project

name = "my-neon-project"

Deploy with wrangler:

npm run deploy

About

An app to store my vinyl collection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published