Skip to main content

Requirements

  • Node.js 18+
  • MySQL 8+
  • npm

Clone

git clone https://github.com/PintoBernardo/cisisk.git
cd cisisk

Install dependencies

npm install

Configure environment

cp .env.example .env
Edit .env with your database credentials:
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWORD=
DB_NAME=cisisk

JWT_SECRET=change-this-to-a-random-string

Create the database

mysql -u root < sql/init.sql
This creates the cisisk database and all tables.

Start

npm run dev
The API starts on the configured port (default 3000).

Verify

curl /api/v1/health

Default permission

The init script seeds a superadmin permission (level 0) with UUID 00000000-0000-0000-0000-000000000000. Assign it to a user after creation via POST /api/v1/user-perms.