Getting started with Triton
Triton is a framework for NodeJS built with Serverless Functions in mind as opposed to frameworks like Fastify, ExpressJS, Hapi which are built with a monolithic mindset.
The Triton workflow
Use Triton's development workflows to build APIs, deploy, version, test locally and build fast to production.
Installation
We recommend creating a new Triton app using create-triton-app, which sets up everything automatically for you. To create a project, run:
npx create-triton-app
Once executed, you can run the npm run dev or yarn dev command to start a development server on http://localhost:3000.
What to read next
Familiarize yourself with some of the core concepts that make Triton.js different from writing APIs using traditional applications with Node.js.
Middleware based
Configure APIs using middleware to connect to database, authenticate, validate, cors.
File-system Routing
Each file in the api folder becomes a route.
Microservice architecture
Serverless functions abstract the need to deal with containers or monitor the status of the service, Triton.js simplifies a create APIs using technology with Node.js.
Unknown exceptions
Triton catches all unknown exceptions and returns a common message but appends to the log.