Skip to content

Run StartKit.AI

If you’ve been following the guide, you should now have the following systems set up:

  1. The StartKit.AI code
  2. An AI provider API key
  3. A MongoDB database
  4. An S3 Bucket to store data
  5. A Pinecone index (optional)

Now we should be able to run StartKit.AI!

Make sure the following variables are set in your .env file:

# Database
MONGO_URI=
# Pinecone
PINECONE_API_KEY=
PINECONE_INDEX_HOST=
# S3 Storage
STORAGE_URL=
STORAGE_REGION=
STORAGE_KEY=
STORAGE_SECRET=
STORAGE_NAME=
# OpenAI Key
OPENAI_KEY=

Some other variables are included as well, but the defaults should work without needing to be changed. See the .env page for an explanation of all the .env variables.

Start the app

To run StartKit.AI in development mode run the following command:

yarn dev
# or with npm
npm run dev

Setup Page

You should then be able to open localhost:1337 in your browser.

You’ll be prompted to set an admin email to log in to the StartKit App:

admin-setup

And then will see this page:

start-page

By default the Example App uses magic link authentication which requires you to setup emails. To setup email sending for StartKit you can follow this guide.

login-page

If you want to skip the email setup and disable authentication for now you can simply enter the following at the bottom of your .env file:

DISABLE_AUTH=1

You can now access the Example App and the API documentation.

When you log in to the Example App as the admin user you created you will be able to see an extra admin section where you can create, manage, and delete users - including creating more admin users if you need.

admin-only

You’re all set up!

Boom 💥, you’re ready start building the next big thing in AI startup land!

Check out the code and the features in the next pages of the docs, or jump right in and start shipping 🚀