2022-12-16 17:35:54 +00:00
< div align = "center" >
2023-05-05 19:51:26 +00:00
< a href = "https://calckey.org/" >
2022-12-16 18:44:09 +00:00
< img src = "./title_float.svg" alt = "Calckey logo" style = "border-radius:50%" width = "400" / >
2022-05-17 16:12:00 +00:00
< / a >
2022-07-19 05:07:59 +00:00
2023-07-09 00:49:20 +00:00
< b > This is a horribly broken fork of Calckey not intended to be run on its own.< / b >
2022-07-19 05:07:59 +00:00
2023-01-15 21:07:11 +00:00
[![no github badge ](https://nogithub.codeberg.page/badge.svg )](https://nogithub.codeberg.page/)
2023-07-09 17:40:13 +00:00
[![status badge ](https://ci.astolfo.cool/api/badges/natty/calckey/status.svg )](https://ci.astolfo.cool/natty/calckey)
2022-12-16 17:35:54 +00:00
2021-02-07 02:43:55 +00:00
< / div >
2021-11-20 09:21:18 +00:00
< div >
2021-03-24 02:57:12 +00:00
2022-11-16 04:25:00 +00:00
< img src = "https://pool.jortage.com/voringme/misskey/e7cd2a17-8b23-4e1e-b5cf-709480c623e2.png" align = "right" height = "320px" alt = "Calc (the Calckey mascot) smoking a fat dart" / >
2018-09-12 20:35:11 +00:00
2022-08-08 06:07:22 +00:00
# ✨ About Calckey
2023-07-09 17:40:13 +00:00
Please see the [upstream version ](https://codeberg.org/calckey/calckey ) if you seriously intend to run this project.
2019-02-05 15:13:31 +00:00
2023-07-09 17:40:13 +00:00
# 🌠 I wanna build this mess anyway
2022-08-10 06:14:51 +00:00
2023-07-09 17:40:13 +00:00
My primary way to build this project is using Podman and deploy as a container:
2022-07-28 02:36:58 +00:00
2023-07-09 17:40:13 +00:00
```sh
docker build -t calckey .
```
2023-01-20 00:56:07 +00:00
2023-07-09 17:40:13 +00:00
Continue reading if you want to build it natively.
2023-01-08 23:49:23 +00:00
2023-01-02 15:59:31 +00:00
## 🧑💻 Dependencies
2022-11-04 21:46:51 +00:00
2023-05-31 02:37:57 +00:00
- 🐢 At least [NodeJS ](https://nodejs.org/en/ ) v18.16.0 (v20 recommended)
2022-11-27 19:55:45 +00:00
- Install with [nvm ](https://github.com/nvm-sh/nvm )
2023-05-31 02:40:23 +00:00
- 🐘 At least [PostgreSQL ](https://www.postgresql.org/ ) v12 (v14 recommended)
- 🍱 At least [Redis ](https://redis.io/ ) v6 (v7 recommended)
2023-05-11 00:08:16 +00:00
- Web Proxy (one of the following)
- 🍀 Nginx (recommended)
2023-05-11 13:25:08 +00:00
- 🦦 Caddy
2023-05-23 00:40:59 +00:00
- 🪶 Apache
2023-06-24 20:23:12 +00:00
- ⚡ [libvips ](https://www.libvips.org/ )
2022-11-27 20:04:08 +00:00
### 😗 Optional dependencies
2022-12-17 18:21:17 +00:00
- [FFmpeg ](https://ffmpeg.org/ ) for video transcoding
2023-05-11 00:08:16 +00:00
- Full text search (one of the following)
2023-05-29 16:22:24 +00:00
- 🦔 [Sonic ](https://crates.io/crates/sonic-server )
- [MeiliSearch ](https://www.meilisearch.com/ )
2023-03-19 08:32:17 +00:00
- [ElasticSearch ](https://www.elastic.co/elasticsearch/ )
2022-11-05 01:48:45 +00:00
2022-11-27 19:51:57 +00:00
### 🏗️ Build dependencies
2023-06-22 05:13:57 +00:00
- 🦀 At least [Rust ](https://www.rust-lang.org/ ) v1.68.0
2022-11-27 19:51:57 +00:00
- 🦬 C/C++ compiler & build tools
- `build-essential` on Debian/Ubuntu Linux
- `base-devel` on Arch Linux
2022-11-27 19:55:45 +00:00
- 🐍 [Python 3 ](https://www.python.org/ )
2022-11-27 19:51:57 +00:00
2022-08-08 06:07:22 +00:00
## 👀 Get folder ready
2022-07-27 18:31:56 +00:00
2022-07-19 18:59:20 +00:00
```sh
2023-07-09 17:40:13 +00:00
git clone https://git.astolfo.cool/natty/calckey.git
2022-07-19 00:36:11 +00:00
cd calckey/
2022-07-27 18:31:56 +00:00
```
2022-10-27 08:01:27 +00:00
## 📩 Install dependencies
```sh
2023-01-03 23:56:32 +00:00
# nvm install 19 && nvm use 19
2023-01-13 04:54:33 +00:00
corepack enable
corepack prepare pnpm@latest --activate
2023-07-09 17:40:13 +00:00
pnpm i
2022-11-27 19:51:57 +00:00
```
2023-07-20 21:01:41 +00:00
## Build
```sh
pnpm run build
```
2023-07-09 17:40:13 +00:00
## Database
2023-03-19 08:32:17 +00:00
2023-07-09 17:40:13 +00:00
This setup assumes you already have a valid PostgreSQL database with
a model corresponding to the Calckey version 14.0.0-RC3.
2023-05-20 03:41:19 +00:00
2023-07-09 17:40:13 +00:00
## Configuring a new server
2022-11-13 19:32:17 +00:00
- Run `cp .config/example.yml .config/default.yml`
- Edit `.config/default.yml` , making sure to fill out required fields.
- Also copy and edit `.config/docker_example.env` to `.config/docker.env` if you're using Docker.
2023-07-09 17:40:13 +00:00
## Running the server
2022-11-04 21:38:38 +00:00
2023-07-09 17:40:13 +00:00
```sh
pnpm run start
```
2022-11-04 21:43:00 +00:00
2023-07-09 17:40:13 +00:00
## Web proxy
2022-11-09 21:38:27 +00:00
2023-07-09 17:40:13 +00:00
### Caddy
2023-05-11 13:25:08 +00:00
- Add the following block to your `Caddyfile` , replacing `example.tld` with your own domain:
```caddy
example.tld {
reverse_proxy http://127.0.0.1:3000
}
```
- Reload your caddy configuration