Clone the Repository
Learn how to clone the NextKit repository
If you have bought a license for NextKit, you have access to all the repositories built by the NextKit team. In this document, we will learn how to fetch and install the codebase.
Requirements
To get started with the Next.js and Supabase SaaS template, we need to ensure you install the required software.
- Node.js
- Git
- Docker
Getting Started with NextKit
Cloning the repository
To get the codebase on your local machine using the original repository, clone the repository with the following command:
The command above clones the repository in the folder my-saas
which you can rename it with the name of your project.
Initializing Git
Now, run the following commands for:
- Moving into the folder
- Point to your own Git repository
If you haven't created a Git repository yet, you can do it later on.
Setting the Upstream repository, and fetching updates
Now, we can add the original NextKit repository as "upstream" so we can fetch updates from the main repository:
To fetch updates, you can run the following command:
Sometimes, you'll likely run into conflicts when running this command, so carefully choose the changes (sorry!).
If you want to use the Lemon Squeezy branch, you'll need to switch to the main-ls
branch:
Of course, when pulling updates, you'll need to pull from the main-ls
branch:
Installing the Node dependencies
Finally, we can install the NodeJS dependencies with npm
:
While the application code is fully working, we now need to set up your Supabase project.
So let's jump on to the next step!