Go to file
Piotr Rogowski a34e2611e3
Initial commit
2022-11-05 15:13:58 +01:00
.github Initial commit 2022-11-05 15:13:58 +01:00
.vscode Initial commit 2022-11-05 15:13:58 +01:00
docker Initial commit 2022-11-05 15:13:58 +01:00
.gitignore Initial commit 2022-11-05 15:13:58 +01:00
.goreleaser.yaml Initial commit 2022-11-05 15:13:58 +01:00
LICENSE Initial commit 2022-11-05 15:13:58 +01:00
README.md Initial commit 2022-11-05 15:13:58 +01:00
go.mod Initial commit 2022-11-05 15:13:58 +01:00
go.sum Initial commit 2022-11-05 15:13:58 +01:00
main.go Initial commit 2022-11-05 15:13:58 +01:00
pb_schema.json Initial commit 2022-11-05 15:13:58 +01:00

README.md

HyperTuner Cloud backend

This is the backend for the HyperTuner Cloud. It is based on a great PocketBase (Open Source backend in 1 file).

This repository contains:

  • The source code of the HyperTuner Cloud backend that extends PocketBase.
  • database schema
  • configurations
  • deployment scripts / Docker and docker compose files
  • migration scripts and guides

Setting up your instance

Use provider Docker files from the /docker directory or just grab the binary from the Releases page:

./cloud-backend serve

This will create pb_data directory where all the data will be stored (SQLite, uploaded files and metadata).

Now you can access the admin UI at: https://your-instance.com/_/.

Application name and URL

Located in admin UI: Settings -> Application.

  • Application name - the name of your application
  • Application URL - the URL of your frontend application

Mail settings

Located in the admin UI: Settings -> Mailer settings.

  • Verification email ACTION URL:
{APP_URL}/#/auth/email-verification/{TOKEN}
  • Password reset ACTION URL:
{APP_URL}/#/auth/reset-password-confirmation/{TOKEN}

OAuth2 settings

For every OAuth2 provider, you need to set the following redirect URLs:

https://{FRONTEND-URL}/?redirect=oauth&provider=google
https://{FRONTEND-URL}/?redirect=oauth&provider=github
https://{FRONTEND-URL}/?redirect=oauth&provider=facebook

Loading schema

Copy/load pb_schema.json to Settings -> Sync -> Import collections in the admin UI.

Building from source

go build

Support this project

GitHub Sponsors

Discord server

HyperTuner Discord server

License

MIT