Skip to content

trapiche-cloud/example-fastify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-fastify

A simple JSON counter API built with Fastify, ready to deploy on Trapiche.

Endpoints

Method Path Description
GET / App info
GET /counter Get current count
POST /counter/increment Increment counter
POST /counter/decrement Decrement counter

Deploy on Trapiche

  1. Push this repo to your GitHub account
  2. Go to trapiche.cloud and create a new deployment
  3. Select this repository — Trapiche detects Fastify automatically
  4. Done. No Dockerfile needed.

Detection

Trapiche detects this as a Fastify app via "fastify" in package.json.

  • Deploy mode: SSR / Docker
  • Build step: skipped
  • Start command: npm startnode server.js

Local development

npm install
npm start
# GET http://localhost:3000/counter

About

Fastify counter API example for Trapiche

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors