Skip to content

Configuration

Nubie supports simple, centralized configuration through aNubie.json file at the root of your project. Use it to control your app’s behavior without diving into code.

OptionTypeDefaultOptionalDescription
portint8080NoThe port your application will listen on when the server starts.
defaultApiVersionint1NoSets the default API version for route prefixing. Useful for versioned APIs like /api/v1.
controllersDirectorystringcontrollersNoFolder where your controller files are located.
jwtSecretKeystringundefinedYesSecret key used to verify and sign JWT tokens. Required if you’re using auth decorator @Authorize()

Example

json
{
  "port": 8080,
  "defaultApiVersion": 1,
  "controllersDirectory": "controllers",
  "jwtSecretKey": "my-super-secret-key-for-auth"
}