Setting up CMS

Setting up CMS

Setting up Sanity.io for content on the website.

Requirements: git, node, npm

Clone the repository & View Mock data.

run

git clone https://git.gay/Loremus/Template-AstronomyPortfolio
cd Template-AstronomyPortfolio
npm install

Create a .env file in project root and put the following content inside it.

#.env file
PROJECTID=il7ro8d9

To test the site and view mockdata run

npm run dev

Setting up your own CMS and content.

  1. Sign up and create your own sanity.io project.
  2. Replace the content inside schemaTypes folder with file from source code's sanity folder schemaTypes.ts
  3. Test your project locally and add your content inside it.
  4. Deploy your sanity io project, obtain the project id of your deployment