Svelte Frontend App / Plugin for my Online Events Calendar Project
9153229f — Travis Shears 3 years ago
docs: update readme
1974d957 — Travis Shears 3 years ago
docs: update CHANGELOG and add LICENSE
163ff53b — Travis Shears 3 years ago
update backend endpoint



You can also use your local clone with git send-email.

#Corona Calendar App Frontend

A Svelte frontend part of the events calendar app I built for my personal website.

*note I'm no longer activity working on this project so the source code here acts as an archive


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

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:5000. 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

#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.

#Deploying to the web

#With now

Install now if you haven't already:

npm install -g now

Then, from within your project folder:

cd public
now deploy --name my-project

As an alternative, use the Now desktop client and simply drag the unzipped project folder to the taskbar icon.

#With surge

Install surge if you haven't already:

npm install -g surge

Then, from within your project folder:

npm run build
surge public my-project.surge.sh