• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Mac4

Mac4

untitled-5794

Public
Like
untitled-5794
Home
Code
4
backend
2
shared
2
README.md
main.tsx
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
/
README.md
Code
/
README.md
Search
6/2/2025
Viewing readonly version of main branch: v8
View latest version
README.md

Saint Benedict Joseph (SBJ) - Apartment Search App

A comprehensive apartment search application that helps users find and save their ideal rental properties.

Features

  • User Authentication: Secure login and registration system
  • Location-based Search: Search apartments by city, state, or zip code
  • Advanced Filters: Filter by price, bedrooms, bathrooms, and amenities
  • Detailed Listings: View photos, descriptions, pricing, and amenities
  • Interactive Map: See apartment locations on an integrated map
  • Favorites System: Save and manage favorite apartment listings
  • Responsive Design: Mobile-first design that works on all devices

Project Structure

├── backend/
│   ├── database/
│   │   ├── migrations.ts    # Database schema setup
│   │   └── queries.ts       # Database query functions
│   ├── routes/
│   │   ├── auth.ts         # Authentication endpoints
│   │   ├── apartments.ts   # Apartment CRUD operations
│   │   ├── users.ts        # User management
│   │   └── static.ts       # Static file serving
│   └── index.ts            # Main API entry point
├── frontend/
│   ├── components/
│   │   ├── App.tsx         # Main application component
│   │   ├── Auth/           # Authentication components
│   │   ├── Search/         # Search and filter components
│   │   ├── Listings/       # Apartment listing components
│   │   └── Map/            # Map integration components
│   ├── index.html          # Main HTML template
│   ├── index.tsx           # Frontend entry point
│   └── style.css           # Application styles
└── shared/
    ├── types.ts            # Shared TypeScript interfaces
    └── utils.ts            # Shared utility functions

Technology Stack

  • Backend: Hono.js (lightweight web framework)
  • Database: SQLite (Val Town hosted)
  • Frontend: React with TypeScript
  • Styling: TailwindCSS
  • Maps: Integrated mapping service
  • Authentication: JWT-based auth system

Getting Started

  1. The backend API is accessible at the root URL
  2. All frontend assets are served from /frontend/
  3. The app includes sample apartment data for testing
  4. User authentication is required for saving favorites

API Endpoints

  • POST /api/auth/register - User registration
  • POST /api/auth/login - User login
  • GET /api/apartments/search - Search apartments
  • GET /api/apartments/:id - Get apartment details
  • POST /api/users/favorites - Add/remove favorites
  • GET /api/users/favorites - Get user favorites

Environment Variables

No external API keys required - the app uses mock data and built-in services.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.