Fastode is an experimental boilerplate / framework based on Fastify.
Why another boilerplate?
Well, I just wanted to experiment with technologies to create MVP products.
Although I have used NestJS, AdonisJS and friends before, those frameworks, while being great, bring their structure and overhead to any project.
I wanted to check how difficult or easy it is to just start with a bunch of basic features and leave everything else to the project.
The objectives for Fastode are -
- Enable a quick way to get REST APIs up and running
- Keep things simple and basic
- Keep things fast
Get started
Getting started on Fastode is simple enough.
Clone the API sample repository that uses Fastode.
|
|
Start server with ..
|
|
That’s it - you are off to creating magic.
Check out -
- Server - https://github.com/techformist/fastode
- Sample API app - https://github.com/techformist/fastode-api-app
What lies underneath?
I should call Fastode just a boilerplate. Other than the structure and easy/quick start, it adds no value what Fastify and its plugins offer (as of today atleast).
Fastode installs Fastify along with select plugins to -
- Provide security for requests/response
- CORS
Both the core Fastode package and your custom app can use Fastify plugins. The API sample app registers both plugin folders. Everything is stitched together in a basic (probably naive) way.
There is no fancy DI, no custom ORM and anything else. In other words - it is quite useless as a framework today :)
Cool, shall I start using it?
- Don’t. Not right now
- Read the previous sentence once more
I will include JWT auth and ObjectionJS at some point in the future to make the package more useful. So check back and comment if you love to live on the edge with experimental NodeJS-based servers.