1.0 KiB
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
- Clone the repo:
git clone https://git.dou.bet/iamdoubz/drawit.git - Enter the repo:
cd drawit - Install DrawIt's dependencies:
npm install --omit=dev - Copy env example:
cp .env.example .env.local - Edit
.env.localto match your environment:nano .env.local
NOTE: be sure to generate a long and unique SESSION_SECRET. Recommendation: openssl rand -hex 32
- Build the production assets:
npm run build - OPTIONALLY, check the TypeScript files:
npm run typecheck - 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.