Skip to content

graycraft/me

Repository files navigation

Graycraft

Client and server logic of the graycraft.me website.

Requirements

Bash ^5.0.0:

$ bash --version
  GNU bash, version 5.1.16(1)-release

Node.js 22.11.0:

$ node -v
  v22.11.0

NPM 10.9.0:

$ npm -v
  10.9.0

Setup

Debian / Ubuntu

$ sudo apt-get install build-essential libcairo2-dev libgif-dev libjpeg-dev libpango1.0-dev librsvg2-dev

https://www.npmjs.com/package/canvas

Git

Clone the Git repository:

$ git clone <gh|https|ssh>graycraft/me.git

Node.js

Use appropriate Node.js version:

$ nvm use

NPM

Install modules for usage:

$ npm i --production

Install modules for development:

$ npm i

Environment

Optionally NODE_NO_WARNINGS can be exported from .env file to silence process warnings regarding experimental features.

This command also enables --experimental-vm-modules option for running Jest with ESM:

$ export $(cat .env.production | xargs)

Usage

Run production server script:

$ npm start