Skip to content

FullStack-Flow/calorie-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calorie-ai-app

This project was created with Better-T-Stack, a modern TypeScript stack that combines React Native, Expo, Hono, 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
  • Hono - Lightweight, performant server framework
  • workers - Runtime environment
  • Drizzle - TypeScript-first ORM
  • Cloudflare D1 - Database engine
  • Authentication - Better-Auth
  • Turborepo - Optimized monorepo build system

Getting Started

First, install the dependencies:

bun install

Database Setup

This project uses Cloudflare D1 (SQLite) with Drizzle ORM.

Runtime database access uses the Cloudflare DB binding from packages/infra/alchemy.run.ts. If a local DATABASE_URL is present, it is only for database tooling.

Alchemy provisions the D1 database and applies migrations during dev and deploy.

  1. Generate migration files:
bun run db:generate

Then, run the development server:

bun run dev

Use the Expo Go app to run the mobile application. The API is running at http://localhost:3000.

Deployment (Cloudflare via Alchemy)

  • Target: server
  • Dev: bun run dev
  • Deploy: bun run deploy
  • Destroy: bun run destroy

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

Project Structure

calorie-ai-app/
├── apps/
│   ├── native/      # Mobile application (React Native, Expo)
│   └── server/      # Backend API (Hono)
├── packages/
│   ├── auth/        # Authentication configuration & logic
│   └── db/          # Database schema & queries

Available Scripts

  • bun run dev: Start all applications in development mode
  • bun run build: Build all applications
  • bun run dev:server: Start only the server
  • bun run check-types: Check TypeScript types across all apps
  • bun run dev:native: Start the React Native/Expo development server
  • bun run db:generate: Generate database client/types

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages