Web application structure #2

Open
opened 2023-10-17 18:31:04 -04:00 by sundog · 3 comments
Owner

We need to develop the model for what we want our web app routing to look like.

Some of this is informed by the data models, some of this is informed by the intended design layout, they're all interconnected.

Let's build some early consensus on how we want this structured.

We need to develop the model for what we want our web app routing to look like. Some of this is informed by the data models, some of this is informed by the intended design layout, they're all interconnected. Let's build some early consensus on how we want this structured.
sundog added the
help wanted
label 2023-10-17 18:31:04 -04:00
sundog added this to the V1.0 project 2023-10-17 18:39:18 -04:00
sundog added the due date 2023-10-20 2023-10-17 18:39:57 -04:00
Collaborator

The last web dev way of doing for me was MVC model. It works, it keeps things neatly split.

I don't expect this product to have hundreds of handlers either. Obviously, instead of Controllers, we have handlers, but the practice is the same.

You already have a clear definition of your Models.

The View part is where everyone has a preference of how they want it tackled. I personally don't mind plain old js/html templating, but there are fancier frameworks that folks love htmx, react, etc.

The last web dev way of doing for me was MVC model. It works, it keeps things neatly split. I don't expect this product to have hundreds of handlers either. Obviously, instead of Controllers, we have handlers, but the practice is the same. You already have a clear definition of your Models. The View part is where everyone has a preference of how they want it tackled. I personally don't mind plain old js/html templating, but there are fancier frameworks that folks love htmx, react, etc.
Author
Owner

Agreed - I'm not a huge fan of the current generation of front-end frameworks like React, and I'm more comfortable with non-single-page-apps in general, but I'm willing to defer to the frontend-leaning devs on the project in terms of the best tooling for the tasks at hand (although I really really hope that's not react haha)

Agreed - I'm not a huge fan of the current generation of front-end frameworks like React, and I'm more comfortable with non-single-page-apps in general, but I'm willing to defer to the frontend-leaning devs on the project in terms of the best tooling for the tasks at hand (although I really really hope that's not react haha)
Collaborator

Assuming that the server will be providing both a front end and a general-purpose API, a fairly typical pattern would be to prefix all of the API routes with /api/1.0.

That leaves front end routes free to do whatever they want, in terms of server side loading/rendering of data, or consuming our own API routes via async fetches on the client side.

Assuming that the server will be providing both a front end and a general-purpose API, a fairly typical pattern would be to prefix all of the API routes with `/api/1.0`. That leaves front end routes free to do whatever they want, in terms of server side loading/rendering of data, or consuming our own API routes via async fetches on the client side.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

2023-10-20

Dependencies

No dependencies set.

Reference: MountainTownTechnology/aural_isle#2
No description provided.