The CodeBench main API.
- NodeJS v16+
- PostgreSQL (cf
docker-compose.yml)
Dev with hot-reloading:
npm run devProd:
npm startDelete schema:
npm run db:dropRun all migrations:
npm run db:migrateReset db (combination of drop and migrate)
npm run db:resetnpm run typeorm migration:generate -- -n xxxCreate migration:
# After editing or adding an Entity
npm run typeorm migration:generate -- -n AddNewEntityAvailable commands for eslint/prettier:
npm run lint:check
npm run lint:fix
npm run format:check
npm run format:fix