cloud-backend/README.md

104 lines
2.6 KiB
Markdown
Raw Normal View History

2022-11-05 11:34:06 -07:00
<p align="center">
2022-11-09 11:36:51 -08:00
<img src="https://raw.githubusercontent.com/hyper-tuner/cloud-backend/master/public/icon.png" alt="HyperTuner" width="100">
2022-11-05 11:34:06 -07:00
</p>
2022-11-05 07:13:58 -07:00
2022-11-05 11:34:06 -07:00
<h1 align="center">HyperTuner Cloud Backend</h1>
2022-11-05 07:13:58 -07:00
2022-11-05 11:34:06 -07:00
<div align="center">
<p><a href="https://hypertuner.cloud"><strong>hypertuner.cloud</strong></a></p>
<p><sub>The best way to share your tunes and logs.</sub></p>
</div>
2022-11-05 07:13:58 -07:00
2022-11-05 11:34:06 -07:00
<br/>
2022-11-05 12:23:44 -07:00
This is the backend for the [HyperTuner Cloud](https://github.com/hyper-tuner/hyper-tuner-cloud). It is based on a great [PocketBase](https://pocketbase.io) backend.
2022-11-05 11:34:06 -07:00
## This repository
- the source code of the **HyperTuner Cloud** backend that extends **PocketBase**.
2022-11-05 07:13:58 -07:00
- database schema
- configurations
2022-11-05 11:34:06 -07:00
- deployment scripts / **Docker** and docker compose files
2022-11-05 07:13:58 -07:00
- migration scripts and guides
## Setting up your instance
2022-11-05 11:34:06 -07:00
Use provider Docker files from the `/docker` directory or just grab the binary from the [Releases](https://github.com/hyper-tuner/cloud-backend/releases) page.
2022-11-05 07:13:58 -07:00
```bash
./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/_/](https://your-instance.com/_/).
### Docker
https://hub.docker.com/r/karniv001/hyper-tuner-cloud-backend
```bash
docker pull karniv001/hyper-tuner-cloud-backend
```
## Upgrading
Some versions will contain breaking changes.
If you are upgrading from a previous version, please read the [UPGRADE.md](UPGRADE.md) file.
2022-11-05 07:13:58 -07:00
### 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**:
```bash
{APP_URL}/#/auth/email-verification/{TOKEN}
```
- Password reset **ACTION URL**:
```bash
{APP_URL}/#/auth/reset-password-confirmation/{TOKEN}
```
### OAuth2 settings
For every OAuth2 provider, you need to set the following redirect URLs:
```bash
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
```bash
go build
```
## Support this project
[GitHub Sponsors](https://github.com/sponsors/karniv00l)
## Discord server
[![HyperTuner Discord server](https://dcbadge.vercel.app/api/server/HdxznPUA)](https://discord.gg/HdxznPUA)
## License
[MIT](https://github.com/hyper-tuner/cloud-backend/blob/master/LICENSE)