Skip to content

Droidion/opus-classical-hono

Repository files navigation

Opus Classical

CI

Catalogue for streaming classical music.

Stack

Run locally

Have Bun installed.

Have database available (not part of this repo).

Install dependencies:

bun install

Create a .env file in the root directory with the following:

DATABASE_URL=postgresql://user:password@neon.tech/opusclassical?sslmode=require
PUBLIC_IMAGES_URL=https://s3.domain.net
PORT=3000

Use 2 tabs in the the terminal. Run tailwind and hono server in parallel in these 2 tabs:

bun run dev:css
bun run dev

Open http://localhost:3000

Testing and linting

Run tests:

bun run test

Or with coverage:

bun run test:coverage

Run linting:

bun run lint

Or fix linting and formatting:

bun run lint:fix

Updating dependencies

Update bun packages with $ bun outdated.

Update CDN scripts:

  • Check out new versions on unpkg
  • Generate the integrity hash with:
    curl -s https://unpkg.com/htmx.org@2.0.6/dist/htmx.min.js | openssl dgst -sha384 -binary | openssl base64 -A
  • Update the integrity hashes in src/components/partials/HeaderLinks.tsx and src/config/plugins.ts.

Deployment

Deployment is handled with Dockploy and Docker.

You can check docker image running locally with:

docker compose up

You should still have .env file set up or provide the same environment variables as in the .env.example file.

About

Catalogue for streaming classical music

Topics

Resources

Stars

Watchers

Forks