• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
David_Navi

David_Navi

Blogged

Public
Like
Blogged
Home
Code
4
backend
3
frontend
4
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
index.ts
https://David_Navi--0630a7d23fbe11f0b6c376b3cceeab13.web.val.run
README.md

Daily Blog - Social Blogging Platform

A social blogging platform where users can share their daily experiences, thoughts, and stories with the community.

Features

  • User Profiles: Create and customize personal profiles
  • Blog Posts: Write and publish daily blog posts with rich text
  • Social Interactions: Like, comment, and share posts
  • Feed: Browse post summaries on the main page
  • Full Post View: Click to read complete posts
  • Responsive Design: Works on desktop and mobile

Project Structure

β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ database/
β”‚   β”‚   β”œβ”€β”€ migrations.ts    # Database schema setup
β”‚   β”‚   └── queries.ts       # Database query functions
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ auth.ts         # Authentication routes
β”‚   β”‚   β”œβ”€β”€ posts.ts        # Post CRUD operations
β”‚   β”‚   β”œβ”€β”€ users.ts        # User profile operations
β”‚   β”‚   └── static.ts       # Static file serving
β”‚   └── index.ts            # Main Hono app entry point
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ App.tsx         # Main React app
β”‚   β”‚   β”œβ”€β”€ PostCard.tsx    # Post summary component
β”‚   β”‚   β”œβ”€β”€ PostDetail.tsx  # Full post view
β”‚   β”‚   β”œβ”€β”€ UserProfile.tsx # User profile component
β”‚   β”‚   └── CreatePost.tsx  # Post creation form
β”‚   β”œβ”€β”€ index.html          # Main HTML template
β”‚   β”œβ”€β”€ index.tsx           # Frontend entry point
β”‚   └── style.css           # Custom styles
β”œβ”€β”€ shared/
β”‚   └── types.ts            # Shared TypeScript types
└── README.md

Tech Stack

  • Backend: Hono (TypeScript API framework)
  • Frontend: React 18.2.0 with TypeScript
  • Database: SQLite
  • Styling: TailwindCSS
  • Storage: Val Town Blob for user avatars

Getting Started

  1. The backend automatically sets up the database on first run
  2. Visit the main page to start browsing posts
  3. Create an account to start posting and interacting
  4. Customize your profile and start sharing your daily experiences

API Endpoints

  • GET / - Main feed page
  • GET /api/posts - Get all posts (with pagination)
  • GET /api/posts/:id - Get specific post with comments
  • POST /api/posts - Create new post
  • POST /api/posts/:id/like - Like/unlike a post
  • POST /api/posts/:id/comments - Add comment to post
  • GET /api/users/:id - Get user profile
  • POST /api/users - Create/update user profile
HTTP
  • index.ts
    David_Navi--06…13.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.