@platformatic/acme-base
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @platformatic/acme-base

Weekly Downloads

0

Version

0.2.0

License

Apache-2.0

Unpacked Size

73.6 kB

Total Files

16

Last publish

Collaborators

  • shogun_panda
  • antoniosonis
  • mzugm
  • leorossi
  • marcopiraccini
  • ivan-tymoshenko
  • matteo.collina