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
- Host: GitHub
- URL: https://github.com/elsmr/hz-pictionary
- Owner: elsmr
- License: mit
- Created: 2017-03-06T21:24:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-31T17:47:34.000Z (almost 8 years ago)
- Last Synced: 2025-01-26T07:44:27.343Z (3 months ago)
- Topics: game, horizon, pictionary, react, rethinkdb
- Language: JavaScript
- Homepage:
- Size: 370 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 OAuthCreate .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
```