A demonic chatbot built with Next.js (App Router), Vercel for hosting, and Firebase for data storage. Step into the Cursed Realm and let the Ghost guide you.
- Features
- Prerequisites
- Project Structure
- Local Setup
- Firebase Configuration
- Vercel Deployment
- Scripts
- Customize Your Horror
- License
- Next.js App Router with Server and Client Components
- Inline CSS for a cursed, demonic UI
- Firebase Firestore (or Realtime Database) integration
- Vercel hosting with zero-cost serverless functions
- Dynamic lore display via modal or scroll
- Node.js v18+ and npm
- Git
- A Firebase project (for Firestore)
- A Vercel account (free tier)
ghost-bot/ # Root folder
├─ app/ # Next.js App Router pages
│ ├─ layout.tsx # Root layout (global styles)
│ └─ page.tsx # Cursed welcome & lore
├─ public/ # Static assets (if any)
├─ styles/ # (Optional) global CSS
├─ firebase.ts # Firebase SDK init
├─ package.json # Project manifest
├─ tsconfig.json # TypeScript config
└─ README.md # This documentation
-
Clone the repository
git clone https://github.com/Tharindu714/AskGhost.com.git cd AskGhost.com -
Install dependencies
npm install
-
Setup Firebase SDK key
- Verify
firebase.tscontains your Firebase config.
- Verify
-
Run development server
npm run dev
Open http://localhost:3000 to view.
- Create a Firebase project at console.firebase.google.com
- Enable Firestore or Realtime Database
- Copy your config object into
firebase.ts - Secure your database rules for production
- Push your code to GitHub.
- In Vercel dashboard, Import Project → select your repo.
- Framework Preset: Next.js
- Build Command:
npm run build - Output Directory: (leave blank)
- Deploy and note your
https://<your-project>.vercel.app
npm run dev— Start dev servernpm run build— Create production buildnpm start— Start production server (Next.js)
- Change Lore: Edit
app/page.tsxand update thelorestring. - UI Theme: Modify inline styles or add Tailwind
- Database: Add Firestore reads/writes in components
- Voice: Integrate Web Speech API for TTS/STT
MIT © Tharindu714