Getting Started with ForgeStack
Welcome to ForgeStack! This guide will help you set up and start using ForgeStack, a Firebase-focused stack template built with Next.js.
Installation
To create a new project using ForgeStack, run the following command:
npx create-forgestack my-app
cd my-app
npm installor using Yarn:
npx create-forgestack my-app
cd my-app
yarn installProject Structure
After installation, your project will have the following structure:
my-app/
βββ public/ # Static assets
βββ src/
β βββ app/ # (Next.js App Router)
β βββ components/ # Reusable UI components
β βββ context/ # User/Theme Contexts
β βββ hooks/ # Custom Firebase hooks
β βββ lib/ # Configuration files
βββ next.config.js # Next.js configuration
βββ package.json # Project dependencies
βββ components.json # Shadcn/UI component registry
βββ README.md # Project documentationEnvironment Variables
Before running the app, configure your Firebase credentials in .env:
NEXT_PUBLIC_FIREBASE_API_KEY=your-api-key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-auth-domain
NEXT_PUBLIC_FIREBASE__DATABASE_URL=your-database-url
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-storage-bucket
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your-sender-id
NEXT_PUBLIC_FIREBASE_APP_ID=your-app-idNEXT_PUBLIC_IMAGEKIT_URL_ENDPOINT=your-imagekit-endpoint
NEXT_PUBLIC_IMAGEKIT_PUBLIC_KEY=your-imagekit-public-key
NEXT_PUBLIC_IMAGEKIT_PRIVATE_KEY=your-imagekit-private-keyNote: To get Your Environment Variables, visit the Firebase Consoleβ and ImageKit Dashboardβ.
Running the Development Server
Once everything is set up, start the development server:
npm run devor
yarn devYour app will be available at http://localhost:3000.
Next Steps
- Learn about Authentication
- Explore Database Integration
- Customize Themes
Happy coding! π