A template for creating apps based on Svelte and Parcel. It runs in a Docker container.
Create a new app based on this template.
mkdir svelte-app
cd svelte-app
npx degit Wildsong/svelte-parcel
Install the dependencies. Then start it.
docker-compose --file=docker-compose.debug.yml up
I am adding support for logging in over OAUTH because every project I have in mind needs this.
For work, what I will need is to be able to authenticate using Active Directory.
I started out with Auth0 because it seemed like their tutorial was good. Also, the free tier is very generous.
I will probably delete a lot of this code once I have a better handle on OAUTH.
oauth/ Sample using Google OAUTH
oauth-auth0/ Sample using Auth0
Obviously this is not a full application so next you hang your own code on this framework. I do lots of map-based apps so I have sample OpenLayers code. You probably want to delete that.
I added a navbar. Now I will be adding OAUTH2 support. This project will probably never be done.
I have that automated a simple rsync with
npm run deploy
You must edit "package.json" to change the rsync command because you can't deploy to my server.
I relied heavily on the book "Practical Svelte" by Alex Libby. **You should join the ACM.