Get Started
Welcome to ShipAhead! This guide makes it easy to set up your SaaS boilerplate. Follow these steps and get your app running in 5 minutes!
Prerequisites
Ensure the following are installed:
- Node.js: Version 22.x or higher (includes npm for package management).
- Git: For version control and cloning the repository.
- Cursor or VSCode: For editing the code.
Setup in 5 Minutes
Clone the Repository (Few ways)
- Fork it on GitHub and clone your fork
terminal
git clone https://github.com/your-username/shipahead-template.git your-project-name - Use Template
- Click
Use this templateon ShipAhead repo, then will create a new repository and clone it to your account
- Click
- Direct Clone
terminal
git clone https://github.com/Tom-Han-Org/shipahead-template.git your-project-name cd your-project-name
- Fork it on GitHub and clone your fork
Install Dependencies
Run the following command to install all required packages:terminalnpm installConfigure Your Project
- Environment Variables:
Copy the example environment file and update it with your settings (e.g., API keys, database URLs):Openterminalmv .env.example .env.local.env.localin a text editor and fill in the necessary values. - App Configuration:
Editshared/config.jsto customize settings like your app name or feature toggles.
- Environment Variables:
Run the Development Server
Start the local server to preview your app:terminalnpm run devYour app will be live at (http://localhost:3000). 🎉
Pull Updates
To keep your project updated with the latest ShipAhead features and fixes:
terminal
git remote add upstream https://github.com/Tom-Han-Org/shipahead-template.git
git fetch upstream
git merge upstream/main
Note: If you face merge conflicts, resolve them manually by reviewing the conflicting files