All the commands to use for your Makerkit app | Next.js Firebase
Use these commands to run the development server, build the application, and more in your Next.js Firebase application
Here are all the commands defined in the MakerKit's template:
Analyzing the Next.js bundle
Run the command:
npm run analyzeThe 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 devRun the E2E testing server
This command is needed for running the E2E tests. Run the command:
npm run dev:testBuild a production bundle
Run the command:
npm buildStart a production server
Run the command after building the application with the build command:
npm startBuild RSS feeds
Run the command:
npm run rssThis is optional as it is automatically called after the build command.
Build Sitemap
Run the command:
npm run sitemapThis is optional as it is automatically called after the build command.
Format all the files
Run the command:
npm run formatHealthcheck: Lint code and check types
Run the command:
npm run healthcheckStart the Firebase Emulator
Run the command:
npm run firebase:emulators:startThis is needed during development.
Export data from the Firebase Emulator
Run the command:
npm run firebase:emulators:exportRun Cypress for E2E Tests (with UI)
Run the command:
npm run cypressRun Cypress for E2E Tests (Headless)
Run the command:
npm run cypress:headlessRun Tests and Exit
Run the command:
npm testRun the Local Stripe Webhooks Server
This is needed if you are testing Stripe. This command requires Docker, but you can alternatively install Stripe on your OS and change the command to use stripe directly.
Run the command:
npm run stripe:listenRun the Mock Stripe Server
Run the command:
npm run stripe:mock-serverIndex blog and documentation pages for making the documents available for searching
Run the command:
npm run blog-docs-indexerKill Ports
The following commands kills all the ports that need to be free to run the Makerkit stack. This can be necessary after running the tests, for example when the emulators don't free up the ports after shutting down.
Run the command:
npm run killports