You are browsing as a guest. Sign up (or log in) to start making projects!

2h 42m 45s logged

Devlog #2 of Comment Box Generator

Comment Box Generator is a small site that lets you generate comment boxes with text inside for various programming languages:

# ======================================
# =              like so               =
# ======================================

(which is centred when you are using a monospace font)

In this devlog I’ve rewritten the “backend” in Bun so in package.json there are several scripts for various purposes:

  • Build: just bun run build.js which minifies whats in src/ and puts it out to dist/
  • Deploy: Builds and hosts the project
  • VPS: This runs vps.sh which is primarily just meant for me to run on my VPS (hosted at https://commentboxgenerator.lemonsite.uk/ ). It kills whatever process is on the port used by CBG (always 3054), builds the project and deploys. It uses nohup to log to a file and to run in the background. It then restarts nginx.
  • Dev: This just runs a development server: unminified and with hot reload straight from src/

On the frontend I’ve added the option to use different languages’ comment syntax, to use single line or multiline comments, and to change what symbol is used for the box.

Things that are coming soon:

  • Styling (as you can tell not much attention has been paid to that yet)
  • Forcing multiline for languages that don’t support single line comments like HTML
0
7

Comments 0

No comments yet. Be the first!