When starting a new API project, the last thing you want is to spend your first hour dealing with setup.
You want to get the project running, understand how things fit together, and start building.
That's the idea behind ZinTrust: make the initial setup straightforward so you can get to the actual work sooner.
Getting started
You can create a new ZinTrust project with a few commands:
npm install -g @zintrust/core
zin new my-app
cd my-app
zin add db:sqlite
zin start
That's the basic setup.
New projects come with an .env file containing default values:
HOST=localhost
PORT=7777
LOG_LEVEL=debug
So you have some basic configuration in place before you start making changes.
What can you build from there?
Once your project is running, you can start working with the framework's core features.
For example:
- Define routes using
Router.get,Router.post, and other route methods. - Group related routes and generate resource routes.
- Define models with
Model.define. - Validate incoming data using
SchemaandValidator.
You can also use SQLite while developing and switch to PostgreSQL or MySQL with another adapter when you're ready.
Get to the interesting part sooner
A framework shouldn't make getting started feel like a project of its own.
The real work is understanding what you're building, solving the problem, and delivering something useful. A simpler starting point gives you more time to focus on those things.
That's what we're working towards with ZinTrust.
Give it a try
npm install -g @zintrust/core
zin new my-app
You can find the full getting-started guide here:
Top comments (0)