Install StartKit.AI
Welcome to StartKit.AI, follow these steps to get the app up and running in a few minutes.
Clone the repo
First start by cloning the GitHub Repo. If you don’t have access yet, you need to purchase it!
git clone git@github.com:startkit-ai/startkit.ai.git new-ai-projectcd new-ai-projectgit clone git@github.com:startkit-ai/startkit.ai-starter.git new-ai-projectcd new-ai-projectWe recommend you create a new GitHub repo, and add that as the origin.
git remote remove origingit remote add origin <your_repo>If you want to pull any of our updates later then you can add the StartKit.AI repo as a separate remote:
git remote add startkit git@github.com:startkit-ai/startkit.ai.git# pull updates from the startkit.ai main branchgit pull startkit main# push local changes to your repogit push -u origin maingit remote add startkit git@github.com:startkit-ai/startkit.ai-starter.git# pull updates from the startkit.ai main branchgit pull startkit main# push local changes to your repogit push -u origin mainInstall dependencies
You can use either npm or yarn to install the project dependencies. If you don’t have Node.js installed yet then you can follow their installation guide here.
# install with yarnyarn# or install with npmnpm iSetup the environment
All keys and other secret variables are stored in a .env file.
Copy the .env.example file:
cp .env.example .envYou’ll need to create a random string to be used as a JWT secret - StartKit uses JWTs to secure some requests and this random token is used to encrypt them.
This script will create a random 32 character string and adds it to the .env file:
sed -i.bak "s/^JWT_SECRET=.*/JWT_SECRET=$(openssl rand -base64 24 | tr -dc A-Za-z0-9 | head -c 32)/" .envMore info here.
Next up, adding your chosen AI provider API key.