KT

kedylind/tailr

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 质量 51 趋势 4

Tailr 是一款面向城市的全栈社交发现应用。它结合了 React + Vite 客户端和 Express API,使用 PostgreSQL(通过 Drizzle、ORM 和 Neon)实现持久化。

概览

Tailr 是一款面向城市的全栈社交发现应用。它结合了 React + Vite 客户端和 Express API,使用 PostgreSQL(通过 Drizzle、ORM 和 Neon)实现持久化。 - 地点发现与搜索 - 支持基于会话的身份验证用户账户 - 社交功能(帖子、评论、点赞、关注、保存地点)- 列表、评论、通知和故事类内容 - 社区地点照片上传(可选支持复制对象存储集成) 该应用作为单一Node.js服务运行,同时服务于以下两者: - /api/* 下的 JSON API 路由- 网页客户端(开发中使用 Vite 中间件,生产环境中使用静态资产) - Node.js(推荐:20。

概述(AI 翻译)

Tailr 是一款面向城市的全栈社交发现应用。它结合了 React + Vite 客户端和 Express API,使用 PostgreSQL(通过 Drizzle、ORM 和 Neon)实现持久化。

目录

  • 概述
  • 技术栈
  • 存储库结构
  • 入门指南
  • 环境变量
  • 可用剧本
  • 数据库与模式
  • API 概述
  • 部署
  • 故障排除
  • 贡献
  • 许可证

概述

Tailr提供:

  • 地点发现与搜索
  • 带有会话认证的用户账户
  • 社交功能(帖子、评论、点赞、关注、保存位置)
  • 列表、评论、通知及类似故事的内容
  • 社区场所照片上传(可选支持复制对象存储集成)

该应用作为单一Node.js服务运行,同时服务于以下两者:

  • /api/* 下的 JSON API 路由
  • 网页客户端(开发中使用 Vite 中间件,生产环境中使用静态资产)

技术堆栈

后端

  • Node.js(推荐:20.x)
  • 快车
  • TypeScript
  • 细雨 ORM
  • Neon 无服务器 PostgreSQL 驱动
  • 会话认证 express-session + memorystore

前端

  • 反应 19
  • Vite 7
  • 沃特
  • TanStack查询
  • Tailwind CSS 4
  • 宣传册 / React 宣传册

模具

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Tailr

Tailr is a full-stack social discovery app for urban places. It combines a React + Vite client with an Express API, using PostgreSQL (via Drizzle ORM and Neon) for persistence.

Table of Contents

Overview

Tailr provides:

  • Place discovery and search
  • User accounts with session-based authentication
  • Social features (posts, comments, likes, follows, saved places)
  • Lists, reviews, notifications, and story-like content
  • Community place photo uploads (with optional Replit Object Storage integration)

The app runs as a single Node.js service that serves both:

  • JSON API routes under /api/*
  • The web client (Vite middleware in development, static assets in production)

Tech Stack

Backend

  • Node.js (recommended: 20.x)
  • Express
  • TypeScript
  • Drizzle ORM
  • Neon serverless PostgreSQL driver
  • Session auth with express-session + memorystore

Frontend

  • React 19
  • Vite 7
  • Wouter
  • TanStack Query
  • Tailwind CSS 4
  • Leaflet / React Leaflet

Tooling

  • tsx for TypeScript runtime scripts
  • esbuild for server bundling in production builds
  • drizzle-kit for database schema push

Repository Structure

.
|- client/                     # React app (UI, routes, hooks, components)
|- server/                     # Express app, API routes, auth, storage layer
|- shared/                     # Shared Drizzle schema + Zod insert schemas
|- script/                     # Build pipeline script (client + server outputs)
|- scripts/                    # Operational shell scripts (for example post-merge)
|- attached_assets/            # Static assets served by Express
|- drizzle.config.ts           # Drizzle configuration
|- vite.config.ts              # Vite config (dev + build outDir)
|- tsconfig.json               # TypeScript config + path aliases
`- .replit                     # Replit runtime and deployment config

Getting Started

Prerequisites

  • Node.js 20.x
  • npm 9+ (or compatible)
  • A PostgreSQL database URL (DATABASE_URL)

1) Install dependencies

npm install

2) Configure environment variables

Create a local environment file or set environment variables in your shell/hosting provider.

# Example .env values
DATABASE_URL=postgres://user:password@host:5432/dbname
SESSION_SECRET=replace-with-a-long-random-secret
PORT=5000
NODE_ENV=development
GOOGLE_API_KEY=optional

3) Apply schema to your database

npm run db:push

4) Start development server

npm run dev
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add kedylind/tailr
新手?先看 mcpskill.org 教程 →