Update readme

This commit is contained in:
Rafael Caricio 2023-04-27 22:00:02 +02:00
parent fe8380e359
commit a2bc297f0e
Signed by: rafaelcaricio
GPG key ID: 3C86DBCE8E93C947

View file

@ -1,6 +1,7 @@
# Reef # FediMovies
[![status-badge](https://ci.caric.io/api/badges/FediMovies/fedimovies/status.svg)](https://ci.caric.io/FediMovies/fedimovies)
Lively federated micro-blogging platform. Lively federated movies reviews platform.
Built on [ActivityPub](https://www.w3.org/TR/activitypub/) protocol, self-hosted, lightweight. Part of the [Fediverse](https://en.wikipedia.org/wiki/Fediverse). Built on [ActivityPub](https://www.w3.org/TR/activitypub/) protocol, self-hosted, lightweight. Part of the [Fediverse](https://en.wikipedia.org/wiki/Fediverse).
@ -13,8 +14,8 @@ Features:
## Instances ## Instances
- [FediList](http://demo.fedilist.com/instance?software=reef) - [FediList](http://demo.fedilist.com/instance?software=fedimovies)
- [Fediverse Observer](https://reef.fediverse.observer/list) - [Fediverse Observer](https://fedimovies.fediverse.observer/list)
Demo instance: https://nullpointer.social/ ([invite-only](https://nullpointer.social/about)) Demo instance: https://nullpointer.social/ ([invite-only](https://nullpointer.social/about))
@ -44,53 +45,53 @@ Run:
cargo build --release --features production cargo build --release --features production
``` ```
This command will produce two binaries in `target/release` directory, `mitra` and `mitractl`. This command will produce two binaries in `target/release` directory, `fedimovies` and `fedimoviesctl`.
Install PostgreSQL and create the database: Install PostgreSQL and create the database:
```sql ```sql
CREATE USER mitra WITH PASSWORD 'mitra'; CREATE USER fedimovies WITH PASSWORD 'fedimovies';
CREATE DATABASE mitra OWNER mitra; CREATE DATABASE fedimovies OWNER fedimovies;
``` ```
Create configuration file by copying `contrib/mitra_config.yaml` and configure the instance. Default config file path is `/etc/mitra/config.yaml`, but it can be changed using `CONFIG_PATH` environment variable. Create configuration file by copying `contrib/fedimovies_config.yaml` and configure the instance. Default config file path is `/etc/fedimovies/config.yaml`, but it can be changed using `CONFIG_PATH` environment variable.
Put any static files into the directory specified in configuration file. Building instructions for `mitra-web` frontend can be found at https://codeberg.org/silverpill/mitra-web#project-setup. Put any static files into the directory specified in configuration file. Building instructions for `fedimovies-web` frontend can be found at https://code.caric.io/FediMovies/fedimovies#project-setup.
Start Mitra: Start Fedimovies:
```shell ```shell
./mitra ./fedimovies
``` ```
An HTTP server will be needed to handle HTTPS requests. See the example of [nginx configuration file](./contrib/mitra.nginx). An HTTP server will be needed to handle HTTPS requests. See the example of [nginx configuration file](./contrib/fedimovies.nginx).
To run Mitra as a systemd service, check out the [systemd unit file example](./contrib/mitra.service). To run Fedimovies as a systemd service, check out the [systemd unit file example](./contrib/fedimovies.service).
### Debian package ### Debian package
Download and install Mitra package: Download and install Fedimovies package:
```shell ```shell
dpkg -i mitra.deb dpkg -i fedimovies.deb
``` ```
Install PostgreSQL and create the database: Install PostgreSQL and create the database:
```sql ```sql
CREATE USER mitra WITH PASSWORD 'mitra'; CREATE USER fedimovies WITH PASSWORD 'fedimovies';
CREATE DATABASE mitra OWNER mitra; CREATE DATABASE fedimovies OWNER fedimovies;
``` ```
Open configuration file `/etc/mitra/config.yaml` and configure the instance. Open configuration file `/etc/fedimovies/config.yaml` and configure the instance.
Start Mitra: Start Fedimovies:
```shell ```shell
systemctl start mitra systemctl start fedimovies
``` ```
An HTTP server will be needed to handle HTTPS requests. See the example of [nginx configuration file](./contrib/mitra.nginx). An HTTP server will be needed to handle HTTPS requests. See the example of [nginx configuration file](./contrib/fedimovies.nginx).
### Tor federation ### Tor federation
@ -109,7 +110,7 @@ docker-compose up -d
Test connection: Test connection:
```shell ```shell
psql -h localhost -p 55432 -U mitra mitra psql -h localhost -p 55432 -U fedimovies fedimovies
``` ```
### Run web service ### Run web service
@ -129,7 +130,7 @@ cargo run
### Run CLI ### Run CLI
```shell ```shell
cargo run --bin mitractl cargo run --bin fedimoviesctl
``` ```
### Run linter ### Run linter
@ -150,15 +151,15 @@ See [FEDERATION.md](./FEDERATION.md)
## Client API ## Client API
Most methods are similar to Mastodon API, but Mitra is not fully compatible. Most methods are similar to Mastodon API, but Fedimovies is not fully compatible.
[OpenAPI spec](./docs/openapi.yaml) [OpenAPI spec](./docs/openapi.yaml)
## CLI ## CLI
`mitractl` is a command-line tool for performing instance maintenance. `fedimoviesctl` is a command-line tool for performing instance maintenance.
[Documentation](./docs/mitractl.md) [Documentation](./docs/fedimoviesctl.md)
## License ## License