A personal "My Account" dashboard built specially for use with the Logto Authentication Platform. Built with vue and cloudflare workers https://logto-demo-account-dashboard.pages.dev/account/aboutme
  • Vue 71.3%
  • JavaScript 28%
  • CSS 0.6%
Find a file
2025-04-20 23:51:53 +08:00
.github all: updated readme 2024-06-05 05:08:00 +10:00
.vscode chore: moved all files from the web/ dir to root 2024-07-06 23:26:55 +10:00
api add log 2025-04-20 23:51:53 +08:00
functions/api/v2 fix: rollback verify functions to original state 2024-07-07 18:57:11 +10:00
public chore: moved all files from the web/ dir to root 2024-07-06 23:26:55 +10:00
src update style 2025-02-17 00:02:19 +08:00
.eslintrc.cjs chore: moved all files from the web/ dir to root 2024-07-06 23:26:55 +10:00
.gitignore chore: made logging more descriptive 2024-07-07 16:31:05 +10:00
.prettierrc.json chore: moved all files from the web/ dir to root 2024-07-06 23:26:55 +10:00
bun.lockb chore: updated bun lockfile 2024-07-07 14:00:12 +10:00
components.json chore: moved all files from the web/ dir to root 2024-07-06 23:26:55 +10:00
index.html update styles 2025-02-12 22:13:43 +08:00
jsconfig.json chore: moved all files from the web/ dir to root 2024-07-06 23:26:55 +10:00
LICENSE moved license and readme into root of project 2024-06-02 11:17:11 +10:00
package-lock.json chore: updated package.json and package lock 2024-07-07 12:49:11 +10:00
package.json chore: updated package.json and package lock 2024-07-07 12:49:11 +10:00
postcss.config.js chore: moved all files from the web/ dir to root 2024-07-06 23:26:55 +10:00
README.md update readme 2025-02-16 23:51:26 +08:00
tailwind.config.js chore: moved all files from the web/ dir to root 2024-07-06 23:26:55 +10:00
vite.config.js update styles 2025-02-12 22:13:43 +08:00
WRANGLER.md more detailed instructions for using the wrangler cli 2024-08-04 04:07:49 +10:00
wrangler.sample.toml updated variable explinations 2024-08-04 03:49:43 +10:00
wrangler.toml update config 2025-02-16 22:15:47 +08:00

Logto-USS (User Self Service)

Warning

This app is not reccomended for use in production just yet!

A personal "My Account" dashboard built specially for use with the Logto Authentication Platform.
Uses cloudflare pages + pages functions for a performant application with no server required!

demo

You can access the demo at logto-demo-account-dashboard.pages.dev.
and can login with

design

my design inspiration came from a few different account management dashboards but prodominiently

with a few others like wargaming, github, reddit and spotify

quick screenshot

img.png

Warning

There are currently a lot of things I want to work on like configuration/customization and a lot of bug fixes, so at the moment I would not recommend using it in production however I am open to contribution!

Logto Configuration

Create a new application

This the app that provide VITE_LOGTO_APPID.

  1. Create a new application in the Logto Dashboard
  2. Add the following redirect URIs to your application
    • https://yourdomain.com/account/callback
    • https://yourdomain.com/account/logout

Create a new machine-to-machine application

This is the app that provide LOGTO_APP_ID and LOGTO_APP_SECRET.

  1. Create a machine-to-machine application
  2. Create a role with permission all
  3. Assign the role to the machine-to-machine application

Setup file provider

This required for uploading avatar. See https://docs.logto.io/logto-oss/file-storage-provider.

npm run cli db system set storageProvider '{"provider":"S3Storage","accessKeyId":"*****","accessSecretKey": "*****","bucket":"*****","endpoint":"*****", "publicUrl": "****" }'

Installing and Configuring your dashboard

  1. Fork this repository
  2. Read through the wrangler.sample.toml and modify the values accordingly
    • You may need to use the wrangler CLI to add some values like secrets and KV bindings. These can also be added through the cloudflare dashboard
    • Read more about using wrangler in the WRANGLER.md
  3. Once filled out remove the old wrangler.toml and rename wrangler.sample.toml to wrangler.toml
  4. Time to deploy the dashboard! Head over the the Cloudflare Pages Deploy Page
    • Follow the instructions to connecting your github account and selecting your forked repository.

install via docker (not yet ready)

  1. Fork and clone repository
  2. Fill out variables in docker/.env following the .env.sample
  3. Deploy using docker compose docker compose up -d in the docker directory
  4. Thats it!
  5. You will need to configure a reverse proxy for the containers. Here is a example nginx config file