Stator: A full-stack template – releases, deployments, enforced conventions
6 min read
I know you've already tried starting up a project by yourself.
You know how tedious it is to set up all the necessary tools.
Just like you, the part I enjoy the most is coding, not boilerplate.
Say hi to stator, a full-stack TypeScript template that enforces conventions, handles releases, automates deployments and much more!
Let's look at the technologies that are used and the ways stator can ease your life.
- DigitalOcean App Platform: build, deploy, and scale apps quickly using a simple, fully managed solution.
- semantic-release: automates the whole package release workflow, including determining the next version number, generating the release notes and publishing the package.
- Postgres: is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions. This distribution also contains C language bindings.
- NestJS CRUD: generates CRUD endpoints based on the entities you have defined, making great use of the DRY principle.
- Fastify: is an efficient server which implies a lower cost of the infrastructure, better responsiveness under load and happy users.
- Swagger: is a broadly adopted industry standard for describing modern APIs.
- ReDoc: is a clean and modern UI to display swagger generated documentation.
- React Router: is a collection of navigational components that compose declaratively with your application.
- Redux Toolkit: is an opinionated toolset for efficient Redux development.
- Material UI: is a React library of components for faster and easier web development. You can build your own design system or start with Material Design.
- cypress: offers fast, easy and reliable testing for anything that runs in a browser.
- commitlint: checks if your commit messages meet the conventional commit format.
- prettier: is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
How to use the template?
- Navigate to the stator GitHub page.
- Click the use template button at the top right.
- Run the interactive CLI with
npm run get-started.
- Follow the instructions presented on the screen.
- Enjoy your newly found freedom from all the hours saved configuring such a complete stack.
If you've carefully followed those 5 easy steps (number 5 is definitely the most important), congratulations, you now have a project that will automatically deploy your latest code on every push from the master branch. You also have a complete set of tools to help you build your house on top of this rock-solid foundation.
The open-source era we live in truly is a thriving time for developers, for knowledge is shared through code re-usability which considerably reduces the global development time of applications.
If you would like to contribute to stator, you are more than welcomed to help us build, one brick at a time, the most complete full-stack template ever.