Svelte Starter with Sapper, GraphQL and Firebase Auth.
- Svelte
- Sapper
- RxJS
- GraphQL via Hasura's graphql-engine
- Authentication via Firebase Auth
- Uses Service Worker to Cache GraphQL Request
- Install dependencies: run
yarnin project root - For dev server: run
yarn devornpm run dev, from project root. The app should be running at: http://localhost:3000. - To build frontend run:
yarn buildornpm run buildfrom project root. Runyarn startornpm startto start app.
- Repo was set up using my personal Hasura and Firebase configurations which is not included. So some setup is required for this repo to work for you.
- You will need to edit the
.envfile to add your credentials - Add your Firebase config to `src/firebase/config.js
- You also need to update the graphql directory with your own queries and mutations
- To run/test in docker locally run
docker run -p 3000:3000 -it <IMAGE> sh. e.g.docker run -p 3000:3000 -it gcr.io/your_project/your_service:54bxr7g9 sh, then from inside image runnode __sapper__/build. Now open browser tolocalhost:3000
- Uses Cloud Run
- To deploy on Cloud Run: run
yarn deployornpm run deploy,
- Move the
src/svqldirectory into it's own repo and publish as a lightweight graphql client forsvelteon npm - use firebase-admin
- Add TypeScript when supported