Skip to Content
ForgeStack 1.3.0 is released πŸŽ‰
Getting Started

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 install

or using Yarn:

npx create-forgestack my-app cd my-app yarn install

Project Structure

After installation, your project will have the following structure:

my-app/ β”œβ”€β”€ public/ # Static assets β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ components/ # Reusable ShadCN UI components β”‚ β”œβ”€β”€ context/ # User Contexts β”‚ β”œβ”€β”€ hooks/ # Custom Firebase hooks β”‚ β”œβ”€β”€ styles/ # Global styles β”‚ β”œβ”€β”€ lib/ # Configuration files β”œβ”€β”€ next.config.js # Next.js configuration β”œβ”€β”€ package.json # Project dependencies └── README.md # Project documentation

Environment 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_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-id

Running the Development Server

Once everything is set up, start the development server:

npm run dev

or

yarn dev

Your app will be available at http://localhost:3000.

Next Steps

Happy coding! πŸš€