Catalogue for streaming classical music.
Have Bun installed.
Have database available (not part of this repo).
Install dependencies:
bun installCreate 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=3000Use 2 tabs in the the terminal. Run tailwind and hono server in parallel in these 2 tabs:
bun run dev:css
bun run devRun tests:
bun run testOr with coverage:
bun run test:coverageRun linting:
bun run lintOr fix linting and formatting:
bun run lint:fixUpdate 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.tsxandsrc/config/plugins.ts.
Deployment is handled with Dockploy and Docker.
You can check docker image running locally with:
docker compose upYou should still have .env file set up or provide the same environment variables as in the .env.example file.