dnbradio / dnbradio-player

The dnbradio web-player
GNU General Public License v3.0
8 stars 1 forks source link

dnbradio-player - Static site generated using Nuxt.

Note: Please ignore server components found in ./server/ and also ignore any proxy definitions found in the nuxt.config.js. They are deprecated.

Live example:

A production instance of dnbradio-player can be found here: https://dnbradio.com/player

Screenshot:

Environment

See env.example for environment variables to get you started.

# .env
NODE_PORT=9000
NODE_HOST=0.0.0.0
NODE_ENV=development

Install dependencies

pnpm run install

Local Development

Serve the app with hot reload on your localhost

pnpm run dev

Debugging

This runs nuxt generate --devtools && nuxt start which starts a nuxt server for the static content, but with vue-dev-tools enabled.

pnpm run debug

Development - Deploy a branch

Generates and deploys static site to dnbradio.com/player-${branch_name}. Based on the current branch you have checked out.

pnpm run generate
pnpm run upload

Production - Deploy main branch

Generates and deploys static site to dnbradio.com/player

pnpm run generate-prod
pnpm run upload-prod