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

https://github.com/elsmr/hz-pictionary

Pictionary game made with horizon.io
https://github.com/elsmr/hz-pictionary

game horizon pictionary react rethinkdb

Last synced: about 1 month ago
JSON representation

Pictionary game made with horizon.io

Awesome Lists containing this project

README

        

# Pictionary

> A horizon.io pictionary game

This project requires a running RethinkDB server. Follow the steps on the official [docs](https://rethinkdb.com/docs/install/).

## Installing dependencies

```shell
npm install # or yarn
```

## Configuration

### Install horizon-cli

```shell
npm install -g horizon
```

### Generate certificates

```
hz create-cert
mv horizon-key.pem horizon-cert.pem ./config/tls/
```
### Setup secrets and OAuth

Create .hz/secrets.toml with contents:

```toml
token_secret = "randombase64stringhere"

[auth.github]
id = "your_client_id"
secret = "your_client_secret"
```

Create config/secrets.js with the same secrets, for example:

```js
module.exports = {
token_secret: "randombase64stringhere",
github: {
id: "your_client_id",
secret: "your_client_secret",
}
}
```

### Apply horizon.io schema

This command will create the necessary tables and indexes.

```shell
hz schema apply --project-name hz_pictionary .hz/schema.toml
```

## Run app locally

```shell
npm start # or yarn start
```