Stornest
A PERN publishing platform connecting readers, writers, and administrators.
How Stornest publishes a story
A story travels through a small number of responsibilities. Pick a topic to follow one part of that journey.
A writer enters a title and body, the frontend posts it, and the API writes an article row carrying the author, the title, the body, and a published time.
The edit request carries a single article id, the API updates that row and nothing else, and the response shows the saved article.
A reader browses and reads, a writer creates and edits content, and an administrator manages it across the platform. The content underneath stays in one relational model.
Publishing exposes an article to the listing endpoint, and the reader interface opens articles from that same published set. Drafts, moderation, comments, and recommendations are not part of the implementation.
React calls the REST API, the API is the only writer, and PostgreSQL holds the users, articles, and roles that the content depends on.
Creating content
Content needs somewhere to live before anyone can read it, and it needs to survive the browser that wrote it.
A writer submits the title and body to the API, which stores the article as a row with its author attached.
The article is durable from the first save, so what was written is what a later reader receives.
Under the hoodThe publishing path, in order
- 01
The interface gathers the content
ReactThe reader and writer interfaces collect what the person typed and send it to the API.
- 02
The API validates and routes
Express and Node.jsREST endpoints decide what kind of operation was asked for and apply the role rules before anything is written.
- 03
The article is written
PostgreSQLThe article row is written with its author, title, body, and published time, so the record is self-contained.
- 04
Reads come from the same tables
PostgreSQLListings and article reads query the same relational data the write path uses, so there is no second copy to fall out of step.
- 05
The interface renders the result
ReactThe response is rendered for the reader, and the writer sees the saved article rather than the form they submitted.
React interfaces talk to an Express and Node.js REST layer that persists articles and users in PostgreSQL. The API owns every write, and the reader, writer, and administrator journeys are separated in the frontend.
What it actually does
Role-aware access
Different workflows for readers, writers, and administrators.
Content editing
Create and manage articles through publishing tools.
Content discovery
Explore articles and trending material.
Relational persistence
PostgreSQL stores the content and application data.
How it moves forward
- 01
Write
Create and edit content.
- 02
Publish
Manage content through role-aware workflows.
- 03
Discover
Browse and read published stories.
The tools behind it
Web interfaces
- React
REST layer
- Express
- Node.js
Data store
- PostgreSQL
How the pieces connect
Client
Services
Storage
- Client: React interfaces. Reader, writer, and administrator experiences.
- Services: Express and Node.js. REST endpoints for articles, users, and publishing roles.
- Storage: PostgreSQL. Relational content and application data.
Engineering decisions
Different users, different journeys
The frontend separates reader, writer, and administrative concerns while the Express backend manages data operations.
The API owns every write
React interfaces call an Express and Node.js REST layer, which is the only component that writes to PostgreSQL.
Relational content modelling
Users, articles, and roles are related tables, so a publication and its ownership stay connected rather than copied.
Challenges
A publishing platform looks like a content editor with extra steps. The difficult part was deciding who is allowed to do what, and where that rule is written down.
Separating the three journeys
A reader, a writer, and an administrator need different things from the same content, and one generic interface would serve all three poorly.
Keeping content and ownership together
An article is meaningless without its author, so the relationship between them has to be part of the model rather than an afterthought.
One write path for every interface
Several interfaces could each try to write content, and every additional writer is another place for the rules to diverge.
Publishing without inventing a workflow
The temptation with a publishing platform is to promise moderation queues and drafts. The implemented platform does not have them.
What stayed with me
What stayed with me from building the publishing platform was mostly about narrowing the scope to what the platform actually does.
Start from the reader journey
Reader, writer, and administrator are three different stories. Designing one first and adapting the others produces interfaces that fit none of them.
A publishing platform is a data model
Content, authorship, and rights belong in related tables, and the interfaces are easier to build once that shape is settled.
One write path is worth the constraint
Routing every write through the API costs some flexibility and removes a whole class of places where the rules could disagree.
Describe what exists
Saying the platform has no moderation or draft states is more useful than implying features that were never built.