kyle-hall / svelte-audio-visualiser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Psst — looking for a more complete solution? Check out SvelteKit, the official framework for building web applications of all sizes, with a beautiful development experience and flexible filesystem-based routing.

Looking for a shareable component template instead? You can use SvelteKit for that as well or the older sveltejs/component-template


svelte app

This is a project template for Svelte apps. It lives at https://github.com/sveltejs/template.

To create a new project based on this template using degit:

npx degit sveltejs/template svelte-app
cd svelte-app

Note that you will need to have Node.js installed.

Get started

Install the dependencies...

cd svelte-app
npm install

...then start Rollup:

npm run dev

Navigate to localhost:8080. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

If you're using Visual Studio Code we recommend installing the official extension Svelte for VS Code. If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense.

Building and running in production mode

To create an optimised version of the app:

npm run build

You can run the newly built app with npm run start. This uses sirv, which is included in your package.json's dependencies so that the app will work when you deploy to platforms like Heroku.

Attributions

This project uses a music track created with a Creative Commons license.

Where The Waves Take Us by Purrple Cat | https://purrplecat.com/

Music promoted by https://www.chosic.com/free-music/all/

Creative Commons CC BY-SA 3.0 https://creativecommons.org/licenses/by-sa/3.0/

About


Languages

Language:JavaScript 61.5%Language:Svelte 25.2%Language:CSS 9.3%Language:HTML 4.0%