Backend: Deno, Hono, and Deno KV
Frontend: HTML, CSS & JavaScript 😇
First, clone this repository into your local development environment. If this is your first time doing so, you can follow GitHub's official documentation for step-by-step instructions.
Running this application also requires that Deno be installed in your local development evironment. Follow the instructions at https://deno.com/ for installation.
Once Deno is installed, open up your terminal and run the following commands in order to start the application.
NOTE: Make sure your current working directory is this repository before running the commands below. If you're unsure what your current working directory is, run pwd
and examine the resulting filepath.
deno install
deno task start
With the server running, your application will available locally at http://localhost:8000! Navigate there in your browser to test the app, and view the frontend code in src/
. NOTE: Any updates to the source code won't be reflected in the browser until after the server is restarted (unless using the development server detailed below). To restart the server, first stop the current process using Ctrl+C
then restart the server with deno task start
.
A Vite development server has also been configured for easy local development with hot reloading. In addition to the above commands, run Vite using deno task dev
to start the development server. NOTE: The dev server is limited to serving files in src/
(available at http://localhost:5173). The Hono HTTP server found in main.ts
must also be running for the application to fully function.