Play trivia games against your friends; a simple web-based game written in Deno with web sockets. Purpose of this project is portfolio and learning Deno.
git clone https://github.com/dynamo58/trivia-game
cd trivia-game
deno run --allow-net --allow-read main.ts
- Deno being locally available
| flag | description |
|---|---|
| --allow-net | allows Deno to access the network (for port binding) |
| --allow-read | allows Deno to read local files (to be able to serve content) |
| --allow-env | allows Deno to read environment variables (for the PORT var) |
| flag | value type | description | default |
|---|---|---|---|
| --pprt | integer | the port app binds to | 3000 |
There are multiple options:
- Deno's official deploy service (free as of writing this)
- Compile via
deno compile --allow-net --allow-read --allow-env main.tsand deploy somewhere as a binary - ... or host yourself 🤷
