FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
clarejoan
clarejoanuntitled-8502
Public
Like
untitled-8502
Home
Code
5
backend
3
frontend
4
shared
1
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 miliseconds.
Sign up now
Code
/
Code
/
Search
README.md

Company Review App

A full-stack application that allows users to leave and view company reviews.

Features

  • Search for companies
  • Leave detailed reviews with ratings
  • View all reviews for a company
  • Responsive design with TailwindCSS

Project Structure

├── backend/
│   ├── database/
│   │   ├── migrations.ts    # Database schema setup
│   │   └── queries.ts       # Database query functions
│   └── routes/
│       └── api.ts          # API endpoints
│   ├── index.ts            # Main Hono server
├── frontend/
│   ├── components/
│   │   ├── App.tsx         # Main React component
│   │   ├── CompanySearch.tsx
│   │   ├── ReviewForm.tsx
│   │   └── ReviewList.tsx
│   ├── index.html          # Main HTML template
│   ├── index.tsx           # Frontend entry point
│   └── style.css           # Custom styles
└── shared/
    └── types.ts            # Shared TypeScript types

API Endpoints

  • GET /api/companies/search?q={query} - Search companies
  • GET /api/companies/{id}/reviews - Get reviews for a company
  • POST /api/reviews - Submit a new review
  • GET /api/companies/{id} - Get company details

Database Schema

Companies Table

  • id (INTEGER PRIMARY KEY)
  • name (TEXT)
  • industry (TEXT)
  • website (TEXT)
  • created_at (DATETIME)

Reviews Table

  • id (INTEGER PRIMARY KEY)
  • company_id (INTEGER)
  • reviewer_name (TEXT)
  • position (TEXT)
  • rating (INTEGER 1-5)
  • title (TEXT)
  • review_text (TEXT)
  • pros (TEXT)
  • cons (TEXT)
  • created_at (DATETIME)
Code
backendfrontendsharedREADME.mdmain.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.