
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.
- Sign up and create your own sanity.io project.
- Replace the content inside schemaTypes folder with file from source code's sanity folder
schemaTypes.ts - Test your project locally and add your content inside it.
- Deploy your sanity io project, obtain the project id of your deployment