Files
drawit/docs/BUILDING.md
T
2026-06-20 05:13:55 -05:00

1.0 KiB

Building guide

Prerequisites

  • node v22.22.0+
  • npm v10.9.4+
  • git v2.34.1+

Other versions may work, they are simply untested.

Guide

  1. Clone the repo: git clone https://git.dou.bet/iamdoubz/drawit.git
  2. Enter the repo: cd drawit
  3. Install DrawIt's dependencies: npm install --omit=dev
  4. Copy env example: cp .env.example .env.local
  5. Edit .env.local to match your environment: nano .env.local

NOTE: be sure to generate a long and unique SESSION_SECRET. Recommendation: openssl rand -hex 32

  1. Build the production assets: npm run build
  2. OPTIONALLY, check the TypeScript files: npm run typecheck
  3. Start the server: npm run start

You should now be running your very own DrawIt instance!

Additional reading

After you know it works!, you should set up an init startup service and reverse proxy.