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!
You can access the demo at logto-demo-account-dashboard.pages.dev.
and can login with
- Username: demo@example.org
- Password: demopassword
my de#spiration came from a few different account management dashboards but prodominiently
with a few others like wargaming, github, reddit and spotify
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!
This the app that provide VITE_LOGTO_APPID
.
- Create a new application in the Logto Dashboard
- Add the following redirect URIs to your application
https://yourdomain.com/account/callback
https://yourdomain.com/account/logout
This is the app that provide LOGTO_APP_ID
and LOGTO_APP_SECRET
.
- Create a machine-to-machine application
- Create a role with permission
all
- Assign the role to the machine-to-machine application
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": "****" }'
- Fork this repository
- 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
- Once filled out remove the old
wrangler.toml
and renamewrangler.sample.toml
towrangler.toml
- 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.
- Fork and clone repository
- Fill out variables in
docker/.env
following the .env.sample - Deploy using docker compose
docker compose up -d
in thedocker
directory - Thats it!
- You will need to configure a reverse proxy for the containers. Here is a example nginx config file