Our great sponsors
-
nodejs-basic-structure
This is a simple project using a few different libraries to create a backend API.
-
fastify-resty
⚔️ Declarative NodeJS web framework with REST API route auto-generation, DI, and decorators, build on top of Fastify and TypeScript.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
Prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
-
Nest
A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Besides these configurations above, I also configured things like .gitignore, ESLint, .env, .npmrc, vite.confg, and the docker-compose.yml. All those configurations can be found inside the repository’s URL because I am not going to talk about each one here. (Repository)
We are implementing the concept of controllers. As our application is very small, we just have one entity and just one file to centralize all routes of this entity
In this project, we are using Prisma as ORM and in order to set it up, we need to run the command
We are going to use Vitest for all the tests and partially we did the setup, once we installed the dependencies at the beginning of this post and also when we copied the vite.cofig.ts
We applied lots of things, techniques, and patterns, but in the end, I felt good with the application that was built. Now I also can say that I am feeling a bit up-to-date with the technologies that this project involved and the way of building software without a framework, it also reminds me, why I like so much of using Frameworks…. go NestJS 💪🏼