Skip to content

Jds-23/ironlog

Repository files navigation

ironlog

This project was created with Better-T-Stack, a modern TypeScript stack that combines Hono, TRPC, and more.

Features

  • TypeScript - For type safety and improved developer experience
  • React Native - Build mobile apps using React
  • Expo - Tools for React Native development
  • TailwindCSS - Utility-first CSS for rapid UI development
  • shadcn/ui - Reusable UI components
  • Hono - Lightweight, performant server framework
  • tRPC - End-to-end type-safe APIs
  • workers - Runtime environment
  • Drizzle - TypeScript-first ORM
  • SQLite/Turso - Database engine
  • Authentication - Better-Auth
  • Oxlint - Oxlint + Oxfmt (linting & formatting)

Getting Started

First, install the dependencies:

pnpm install

Database Setup

This project uses SQLite with Drizzle ORM.

  1. Start the local SQLite database (optional): D1 local development and migrations are handled automatically by Alchemy during dev and deploy.

  2. Update your .env file in the apps/server directory with the appropriate connection details if needed.

  3. Apply the schema to your database:

pnpm run db:push

Environment Variables

Native App (apps/native)

The native app requires EXPO_PUBLIC_SERVER_URL to connect to the API server.

  • Local dev: Copy .env.example to .env (already set to http://localhost:3000)
    cp apps/native/.env.example apps/native/.env
  • EAS builds: The URL is set per build profile in apps/native/eas.json:
    • developmenthttp://localhost:3000 (dev client)
    • preview — deployed Workers URL (internal testing)
    • production — deployed Workers URL

Then, run the development server:

pnpm run dev

Open http://localhost:3001 in your browser to see the web application. Use the Expo Go app to run the mobile application. The API is running at http://localhost:3000.

Deployment (Cloudflare via Alchemy)

  • Dev: cd apps/server && pnpm run dev
  • Deploy: cd apps/server && pnpm run deploy
  • Destroy: cd apps/server && pnpm run destroy

For more details, see the guide on Deploying to Cloudflare with Alchemy.

Git Hooks and Formatting

  • Format and lint fix: pnpm run check

Project Structure

ironlog/
├── apps/
│   ├── web/         # Frontend application ()
│   ├── native/      # Mobile application (React Native, Expo)
│   └── server/      # Backend API (Hono, TRPC)
├── packages/
│   ├── api/         # API layer / business logic
│   ├── auth/        # Authentication configuration & logic
│   └── db/          # Database schema & queries

Available Scripts

  • pnpm run dev: Start all applications in development mode
  • pnpm run build: Build all applications
  • pnpm run dev:web: Start only the web application
  • pnpm run dev:server: Start only the server
  • pnpm run check-types: Check TypeScript types across all apps
  • pnpm run dev:native: Start the React Native/Expo development server
  • pnpm run db:push: Push schema changes to database
  • pnpm run db:generate: Generate database client/types
  • pnpm run check: Run Oxlint and Oxfmt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages