If you'd prefer to set things up manually - without the setup wizard - follow these steps:
Click here to fork this repository.
or, fork with the GitHub CLI:
gh repo fork paperclip-cms/supabase-cms-kitClone the repository to your local machine:
git clone https://github.com/you/your-fork.git
Paperclip OSS works by using a Supabase project as the backend for your CMS. Create a new project here: https://supabase.com
Once your project is created, find and take note of these three values:
Paperclip creates several tables and functions in your Supabase project.
Use the Supabase CLI to run the Paperclip database migrations:
# log in to supabase
supabase login
# link to your new project
supabase link
# run migrations on your project
supabase db pushCopy the sample into your own file:
cp .env.example .envUpdate the variables with values from your Supabase project:
NEXT_PUBLIC_SUPABASE_URL=your-project-url
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your-publishable-or-anon-key
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
Your service role key is only used for admin account setup. If you do not feel comfortable using this key, you have two options:
- Once you've gone through the account setup wizard, revoke this key and/or remove it from your
.envfile - Manually create your first user in the Supabase Studio (here), after you have run the migrations. The setup wizard will detect this user automatically, so no further action is needed.
Start the development server:
npm run devVisit http://localhost:3000 (check terminal output for the correct URL), and create your first admin user.