5
0 Comments

I'm building SaaS and documenting the process. Day 14: end-user UI for creating and editing posts

This is the fourteenth episode in the reality show about the development SaaS app from scratch. The previous episodes:

Open SaaS development from scratch: why and what
Day 1: requirements and UI wireframes
Day 2: admin pages
Day 3: user pages
Day 4: database models, database update, and a couple of new wireframe pages
Day 5: started API and made changes to the database models
Day 6: created the admin board and new problems
Day 7: board settings page
Day 8: board settings page, more details and tabs
Day 9: board settings page, more tabs
Day 10: finished all 4 meta lists for board settings page
Day 11: experimenting with subdomains
Days 12 & 13: subdomains, separate apps, and user interface

Yesterday I worked mostly on the end-user interface.

I created two React views, one for list of user's posts and another one for editing the post. I changed the database models as I found user <--> tags relationship is many-to-many, not one-to-many as I thought before. SQLAlchemy ORM allows to create such relationship pretty quickly, with just additional table what is a usual approach. Unusual is how it's done with SQLAlchemy (the table looks a little bit artificial, but it makes everything even easier).

Another problem was to update the post having a list of tags. I had to get the database entities for each tag and then update the post's entity. But it's okay and speed of working with database is pretty good.

It's how the editing post looks now:

Page for editing post

Time spent: 3 hours
Total time spent so far: 35 hours

on March 20, 2020
Trending on Indie Hackers
1 small portfolio change got me 10x more impressions User Avatar 30 comments AI Is Destroying the Traditional Music Business and Here’s Why. User Avatar 29 comments Fixing my sleep using public humiliation and giving away a Kindle User Avatar 23 comments A Tiny Side Project That Just Crossed 100 Users — And Somehow Feels Even More Real Now User Avatar 16 comments From 1k to 12k visits: all it took was one move. User Avatar 11 comments Retention > Hype: What Are We Really Chasing as Builders? User Avatar 9 comments