FreeSewing uses Sanity — a headless CMS, or a SaaS platform for structure content — to host various types of content.
For background information, please refer to the Sanity content guide.
The Sanity content scheme is stored in
sites/sanity/schema in our monorepo.
We use two datasets:
site-dataholds blog and showcase posts in all languages, as well as newsletter editions. This dataset is publicly avaialble.
user-dataholds images uploaded by users, such as for their account image, or measurements set image. This dataset is not publicly available.
sites/sanity folder holds an instance of Sanity Studio — the frontend to
manage the content — preconfigured to work with our content. This site is
published at https://cms.freesewing.org/ where editors can work on our content.
To be able to use the Sanity Studio with FreeSewing’s data, you need to be added as an editor. Sanity supports using your GitHub account to authenticate, so if you want to become an editor, you can ask joost to grant you access.
After setting up the monorepo with
yarn kickstart in the root folder, change your working directoy to
sites/sanity and run
git clone firstname.lastname@example.org:freesewing/freesewing.git cd freesewing yarn kickstart cd sites/sanity yarn dev
The Sanity Studio UI will open at http://localhost:3333
This instance is setup to work with our production data.
The following data is required to interact with Sanity:
- Project ID:
With that and the API reference documentation you should be able to get started.