Commands

Here are all the commands defined in the MakerKit's template:

Analyzing the Next.js bundle

Run the command:

npm run analyze

The command will automatically bundle your clients and open a page with an analysis of your bundles. This will allow you to understand which libraries are taking the most space.

Run the development server

Run the command:

npm run dev

Run the E2E testing server

This command is needed for running the E2E tests. Run the command:

npm run dev:test

Build a production bundle

Run the command:

npm build

Start a production server

Run the command after building the application with the build command:

npm start

Build RSS feeds

Run the command:

npm run rss

This is optional as it is automatically called after the build command.

Build Sitemap

Run the command:

npm run sitemap

This is optional as it is automatically called after the build command.

Format all the files

Run the command:

npm run format

Healthcheck: Lint code and check types

Run the command:

npm run healthcheck

Start the Firebase Emulator

Run the command:

npm run firebase:emulators:start

This is needed during development.

Export data from the Firebase Emulator

Run the command:

npm run firebase:emulators:export

Run Cypress for E2E Tests (with UI)

Run the command:

npm run cypress

Run Cypress for E2E Tests (Headless)

Run the command:

npm run cypress:headless

Run Tests and Exit

Run the command:

npm test

Run the Local Stripe Webhooks Server

This is needed if you are testing Stripe.

Run the command:

npm stripe:listen

Run the Mock Stripe Server

Run the command:

npm stripe:mock-server

Index blog and documentation pages for making the documents available for searching

Run the command:

npm blog-docs-indexer

Stay informed with our latest resources for building a SaaS

Subscribe to our newsletter to receive updates