dphiffer / eyebeam-frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trust environment

Frontend built with the Svelte framework, based on sveltejs/template

Using pixi.js for graphics and colyseus.js for networking.

Development notes

Install the dependencies...

yarn

...then start Rollup:

yarn dev

Navigate to localhost:5000. You should see your app running.

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.

To create an optimised version of the app:

yarn build

By default, sirv will only respond to requests that match files in public. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere.

If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for any path. You can make it so by editing the "start" command in package.json:

"start": "sirv public --single"

About


Languages

Language:Svelte 88.8%Language:JavaScript 7.7%Language:HTML 2.6%Language:SCSS 0.9%