Getting Started
Learn how to set up and run your ShipTanStarter website in minutes.
This guide will walk you through setting up ShipTanStarter.
Prerequisites
Before you begin, make sure you have the following installed:
Git
Git is a version control system that is used to track changes in any file.
If Git is not installed, download it from the Git official website.
# Check if Git is installed
git --versionNode.js
Node.js is a runtime environment that allows you to run JavaScript code.
If Node.js is not installed, download it from the Node.js official website.
# Check if Node.js is installed
node --versionPNPM
Package manager is a tool that is used to manage dependencies in your project. We recommend using pnpm.
# Install pnpm if you haven't already
npm install -g pnpm
# Other platforms please follow the installation docs: https://pnpm.io/installation
# Check pnpm version
pnpm --versionGitHub CLI
GitHub CLI (gh) is used to sync secrets to GitHub for automated deployments via GitHub Actions. Install it and log in:
# Install gh (macOS)
brew install gh
# Other platforms please follow the installation docs: https://github.com/cli/cli#installation
# Check if gh is installed
gh --version
# Log in to GitHub
gh auth login
# Check account status
gh auth statusQuick Setup
Create your project
Clone the template repository from GitHub:
git clone https://github.com/xyzapphub/ship-tan-starter.git your-project-name
cd your-project-nameRemove the original remote connection to the template repository and create a private GitHub repository for your project:
# Remove the original remote
git remote remove origin
# Create a private repository on GitHub and set it as the remote
gh repo create your-project-name --private --source=. --remote=origin
# Push the code to your new repository and set the default branch to main
git push -u origin mainThis command creates a private GitHub repository, sets it as the origin remote, and pushes the code.
Install dependencies
Install the dependencies by running the following command:
pnpm installSet up environment variables
Copy the .env.example file to .env as a starting point.
cp .env.example .envOpen the environment file and set the variables to your desired values. You can find more information about the environment variables in the Environment Configuration guide.
Start the development server
Now that you have the environment variables set up, you can start the development server by running the following command:
pnpm run devThis will start the development server on http://localhost:3000 and you can access the template website.
Video Tutorials
Coming soon.
Next Steps
Now that you have ShipTanStarter running, here are some next steps: