- Next.js Firebase
- Clone the repository
Clone the repository
Learn how to clone the MakerKit repository
If you have bought a license for MakerKit, you have access to all the repositories built by the MakerKit team. In this document, we will learn how to fetch and install the codebase.
To get started with the Next.js and Firebase SaaS template, we need to ensure you install the required software.
- Node.js LTS (Please do not upgrade yet to Node 18)
- Firebase Tools
Assuming that you have likely installed Node.js and Git, please also install
firebase-tools package using
npm i -g firebase-tools
If you have already installed it, please ensure that you are running the latest version.
To get the codebase on your local machine, clone the repository with the following command:
git clone --depth=1 https://github.com/makerkit/next-firebase-saas-kit my-saas
The command above clones the repository in the folder
you can rename it with the name of your project.
Now, run the following commands for:
- Moving into the folder
- Reinitialize your git repository
- Adding the original Makerkit repository as "upstream" so we can fetch updates from the main repository:
cd my-saas rm -rf .git git init git remote add upstream https://github.com/makerkit/next-firebase-saas-kit git add . git commit -a -m "Initial Commit"
In this way, to fetch updates (after committing your files), simply run:
git pull upstream main --allow-unrelated-histories
You'll likely run into conflicts when running this command, so carefully choose the changes (sorry!).
Finally, we can install the NodeJS dependencies with
While the application code is fully working, we now need to set up your Firebase project.
So let's jump on to the next step!