Web client for Deschtimes group status.
npm i -g pnpm
pnpm i
pnpm dev
You have multiple options to deploy the app.
This is the recommended method.
- Fork this repository.
- Login to Vercel. GitHub, GitLab, Bitbucket, and plain e-mail are all supported. Create a new project.
- When asked about the directory containing the project source code, the default is fine, hit Continue.
- Switch FRAMEWORK PRESET to
Svelte
. - Under Build & Output Settings:
- Toggle Override for
BUILD COMMAND
and set it tonpm run build:vercel
- Toggle Override for
OUTPUT DIRECTORY
and set it tobuild
- Toggle Override for
- Under Environment Variables:
- Set NAME to
TOKEN
- Set VALUE to your group token from Deschtimes
- Set NAME to
- Click Add and then Deploy.
- Under your newly made project, go to Settings > Git, and scroll down to Deploy Hooks.
- Create a Hook with a descriptive name (
Deschtimes
is suggested) and type inmain
for yourGit Branch Name
, click Create Hook. Copy the newly added webhook URL and do not share it with anyone else. - Log in to Deschtimes and go to your Group page. Under Webhooks, click Manage.
- Click Add Webhook. Use a descriptive name like
Vercel
, and paste the URL you obtained from step 9. Set the platform to Vercel, press Create Webhook.
Your application will be statically generated every time your group's projects are updated on Deschtimes.
- Fork this repository.
- Login to Netlify. GitHub, GitLab, Bitbucket, and plain e-mail are all supported.
- Under project type, select Web Application and Get started.
- Connect to a Git provider.
- Select your fork of this repository.
- Under Basic build settings, click Show advanced.
- Under Advanced build settings, click New variable.
- Set Key to
TOKEN
. Set Value to your group token from Deschtimes. - Deploy site.
- Under Build & deploy, scroll down to Build hooks and click Add build hook.
- Set the name to something descriptive like
Deschtimes
and keep the branch tomain
. Hit save and copy the URL. - Log in to Deschtimes and go to your Group page. Under Webhooks, click Manage.
- Click Add Webhook. Use a descriptive name like
Netlify
, and paste the URL you obtained from step 11. Change the platform to Vercel, press Create Webhook.
Your application will be statically generated every time your group's projects are updated on Deschtimes.
After deploying to one of the options above, open the /config
page of your newly deployed application.
For example if your site is https://blah-blah-1234.netlify.com
, then you should go to https://blah-blah-1234.netlify.com/config
to configure your embed.
The configuration page contains a live preview of what various states of the application will look like, or you can also see what your specific group data will look like by clicking Go to page.
Dual-licensed under either MIT license or Apache License (Version 2.0), under your convenience.