docs: replace boilerplate README with proper project documentation
This commit is contained in:
1 parent
54369206d4
commit
e60a91ec25
1 file changed
+76
-22
@@ -1,37 +1,91 @@
|
||||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
||||
# APK Forge 🔨
|
||||
|
||||
## Getting Started
|
||||
AI-powered prompt-to-APK builder. Describe an app in plain language, and APK Forge generates, builds, and delivers a ready-to-install Android APK.
|
||||
|
||||
First, run the development server:
|
||||
## How It Works
|
||||
|
||||
1. **Describe your app** — Use natural language to explain what you want
|
||||
2. **AI generates the code** — LLM creates a complete web app based on your prompt
|
||||
3. **Build & package** — The build worker wraps it into a native Android APK using Capacitor
|
||||
4. **Download** — Get a signed APK ready to install on any Android device
|
||||
|
||||
## Features
|
||||
|
||||
- **Conversational AI builder** — Chat-based interface to refine your app iteratively
|
||||
- **Real-time build progress** — WebSocket-powered live build status updates
|
||||
- **Template library** — Start from pre-built templates or describe something from scratch
|
||||
- **Project management** — Save, revisit, and iterate on your app projects
|
||||
- **Multi-model LLM support** — Configurable model with automatic fallback chain
|
||||
- **Admin dashboard** — User management, build analytics, system monitoring
|
||||
- **PWA support** — The builder itself is installable as a PWA
|
||||
|
||||
## Tech Stack
|
||||
|
||||
- **Framework:** Next.js 16 (App Router, React 19)
|
||||
- **UI:** shadcn/ui + Tailwind CSS
|
||||
- **Database:** MongoDB
|
||||
- **Build system:** Android SDK + Capacitor (bundled in Docker image)
|
||||
- **Process management:** supervisord (Next.js server + build worker)
|
||||
- **Real-time:** WebSocket for build progress
|
||||
|
||||
## Quick Start
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- Node.js 22+
|
||||
- MongoDB instance
|
||||
- Access to an OpenAI-compatible LLM API
|
||||
|
||||
### Development
|
||||
|
||||
```bash
|
||||
npm install
|
||||
cp .env.example .env # Configure your environment
|
||||
npm run dev
|
||||
# or
|
||||
yarn dev
|
||||
# or
|
||||
pnpm dev
|
||||
# or
|
||||
bun dev
|
||||
```
|
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||
### Environment Variables
|
||||
|
||||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
||||
| Variable | Description |
|
||||
|---|---|
|
||||
| `MONGODB_URI` | MongoDB connection string |
|
||||
| `NEXTAUTH_SECRET` | JWT signing secret |
|
||||
| `LLM_API_KEY` | API key for LLM provider |
|
||||
| `LLM_API_URL` | OpenAI-compatible API base URL |
|
||||
| `LLM_MODEL` | Default model to use |
|
||||
| `NEXT_PUBLIC_APP_URL` | Public URL of the app |
|
||||
|
||||
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
||||
### Docker
|
||||
|
||||
## Learn More
|
||||
The production image bundles Next.js, the build worker, and the Android SDK into a single container managed by supervisord.
|
||||
|
||||
To learn more about Next.js, take a look at the following resources:
|
||||
```bash
|
||||
docker build -t apk-forge .
|
||||
docker run -p 3000:3000 --env-file .env apk-forge
|
||||
```
|
||||
|
||||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
||||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
||||
## Architecture
|
||||
|
||||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
||||
```
|
||||
┌─────────────────────────────────────┐
|
||||
│ Next.js App │
|
||||
│ ┌──────────┐ ┌─────────────────┐ │
|
||||
│ │ Chat UI │ │ Admin Panel │ │
|
||||
│ └────┬─────┘ └────────────────┘ │
|
||||
│ │ │
|
||||
│ ┌────▼──────────────────────────┐ │
|
||||
│ │ API Routes │ │
|
||||
│ │ /api/chat /api/build ... │ │
|
||||
│ └────┬──────────────────────────┘ │
|
||||
│ │ │ │
|
||||
│ ┌────▼─────┐ ┌────▼───────────┐ │
|
||||
│ │ LLM API │ │ Build Worker │ │
|
||||
│ │ (proxy) │ │ (Capacitor + │ │
|
||||
│ └──────────┘ │ Android SDK) │ │
|
||||
│ └────────────────┘ │
|
||||
└─────────────────────────────────────┘
|
||||
```
|
||||
|
||||
## Deploy on Vercel
|
||||
## License
|
||||
|
||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
||||
|
||||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
||||
# Sat Mar 14 13:12:49 UTC 2026
|
||||
Private repository.
|
||||
Reference in new issue
Block a user