Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.82 KB

self-managed.md

File metadata and controls

44 lines (30 loc) · 1.82 KB

Getting started: We manage the event website

This approach gives us more control over the project repository and hosting of our event website. We can still use the Stackbit editor to manage the content and collaborate with other users.

  1. Create a new repository that uses this project as the template

    1. Use this link to do that quickly
  2. Clone the new repository, install dependencies, and run it locally

    git clone https://github.com/your-account/your-event-website
    cd your-event-website
    
    npm ci
    npm run prepare
    npm run dev
    # visit the site at http://localhost:3000
  3. Run the Stackbit editor locally (technically we still access the online Stackbit editor, but all changes are saved directly to our local project)

    npx stackbit dev
    # then follow the instructions in the console output

    Stackbit editor

Import the project to the Stackbit dashboard

If we want other users to be able to manage the event website content, we need to import our repository into the Stackbit dashboard.

  1. From the Stackbit dashboard, click on the New project button
  2. Click on the Create from GitHub button
  3. Choose the Use my repository option and click Next
  4. Choose the repository that we just created in the previous steps, then click Validate
  5. We can leave the advanced options with the default values and click Next
  6. Give the project a name, then click Create Project
  7. It will take a while to spin up a fresh project, but once it's done we can start editing the content, adding new pages, and publishing the event website.

Deployment

We can deploy the our new project to Netlify or Vercel, although we have to configure it manually.