Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/unixporn/trup

Discord bot for the Unixporn community
https://github.com/unixporn/trup

hacktoberfest

Last synced: 6 days ago
JSON representation

Discord bot for the Unixporn community

Awesome Lists containing this project

README

        

# Trup

**A Discord bot for the Unixporn community**

![build status](https://github.com/unixporn/trup/workflows/build/badge.svg)
![lint status](https://github.com/unixporn/trup/workflows/lint/badge.svg)

# Dependencies

- Go
- PostgreSQL 11 or above

# Setup with Docker

After cloning the repository, create a file called `.env` containing the necessary environment variables (as shown in `/.env.example`) in the project root.

Afterwards, you can initialize the Docker services by running

```sh
docker-compose up -d
```

# Automatic setup with Nix

```sh
# Install the Nix package manager:
curl -L https://nixos.org/nix/install | sh

# Clone this repo
git clone https://github.com/unixporn/trup
cd trup

# Enter the dev environment
nix-shell

# Set environment variables
cp .env.example .env

go run .
```

# Set up the database

No need to do this if you use Nix.

```sh
# Database
createdb trup
psql trup