Psst — looking for a shareable component template? Go here --> sveltejs/component-template
This is a version of the SAFE NodeJS Tutorial app using the Svelte web app framework. It is based on the Svelte 'hello world' template at https://github.com/sveltejs/template.
To create a new project based on this template using degit:
npx degit theWebalyst/safetutorial-svelte safe-svelte-app
cd safe-svelte-app
npm install
cd safe-svelte-app
npm install
...then start Rollup:
npm run dev
Start SAFE Browser (dev build) and navigate to localhost:5000. You should see your app running. Edit a component file in src
, save it and the page will reload to show your changes.
./public
): npm run build
Use the Maidsafe Web Hosting Manager or similar application to create a public name and service, and then upload the contents of ./public
to your web service folder.
Open your website/app in SAFE Browser
Install now
if you haven't already:
npm install -g now
Then, from within your project folder:
now
As an alternative, use the Now desktop client and simply drag the unzipped project folder to the taskbar icon.
Install surge
if you haven't already:
npm install -g surge
Then, from within your project folder:
npm run build
surge public