0.2.0 • Published 8 months ago

@platformatic/acme-base v0.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

@platformatic/acme-base

This is foundation piece for all Acme development. All microservices developed in Acme use this tool.

Install

npm install platformatic @platformatic/acme-base

Usage

Create a file platformatic.json in your root folder:

{
  "$schema": "https://raw.githubusercontent.com/platformatic/acme-base/main/schemas/1.json",
  "module": "../index.js",
  "server": {
    "hostname": "{{HOSTNAME}}",
    "port": "{{PORT}}"
  },
  "dynamite": true,
  "watch": "{{WATCH}}"
}

HOSTNAME, PORT and WATCH are environment variables that are automatically loaded from a .env file in the folder, like so:

WATCH=true
HOSTNAME=127.0.0.1
PORT=8080

Utilities should be placed inside the plugins/ folder, while routes should be defined in routes/ . Both should be defined as Fastify plugins.

License

Apache-2.0

0.2.0

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago