...

/

Structuring a Web Application

Structuring a Web Application

Learn how to structure a Deno application.

Structure and scalability

When starting an application, it’s important that we spend some time thinking about its structure and architecture. That's where there this section will start: by looking at the backbone of application architecture. We’ll have a look at what advantages it brings and align ourselves with a set of principles that will help us scale it as the application grows.

Press + to interact

Then, we’ll develop what will become the application’s first endpoint. However, first, we’ll start with the business logic. The persistency layer will follow, and we’ll finish by looking at an HTTP endpoint that will act as the application’s entry point.

Application architecture of Deno

When we’re using tools that are low level and delegate many decisions to developers, such as Node.js and Deno, structuring an application is one of the big challenges that arises.

This is very different compared to an opinionated web framework, such as PHP Symfony, Java SpringBoot, or Ruby on Rails, where many of these decisions are made for us.

Most of these decisions have something to ...