Skip to content

dynamo58/trivia-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APU - Logo

About

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.



Run yourself

git clone https://github.com/dynamo58/trivia-game
cd trivia-game
deno run --allow-net --allow-read main.ts

Requirements:

  • Deno being locally available

Obligatory CLI arguments/flags:

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)

Optional CLI arguments/flags:

flag value type description default
--pprt integer the port app binds to 3000



Deploy yourself

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.ts and deploy somewhere as a binary
  • ... or host yourself 🤷

Enjoy!