Skip to content

hidaviddong/autopdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto PDF

English / 中文

preview

Motivation

Inspired by various chat-based code/UI generation tools, this project enables PDF document generation through chat interactions.

Online Access 

Auto PDF

TODO

If you have any feature suggestions or feedback for the project, feel free to create an Issue or PR! 👏

  • PDF download support
  • Multiple PDF version viewing
  • i18n
  • Add template library
  • Custom template support
  • Support model switching
  • Optimize prompts, add more templates
  • Support manual adjustment of PDF properties (title/font/color etc.)
  • Support image insertion in PDFs
  • Support PDF to Word conversion

Deployment Guide

In the root directory, run:

bun install

Frontend

cd packages/client
cp .env.example .env

Configure the environment variables:

VITE_API_URL=http://localhost:3000

Backend

cd packages/server
cp .env.example .env

Configure the environment variables:

DB_FILE_NAME=
BETTER_AUTH_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URI=

For OAuth setup, please refer to Better-Auth documentation

Database

cd packages/server
bun run db:push

Development

In the root directory, run:

bun run dev

Build

In the root directory, run:

bun run build

Production

In the root directory, run:

bun run start