Install the Cosmic JavaScript SDK
Install the Cosmic JavaScript SDK in the location of the codebase.
npm i @cosmicjs/sdk
Add an Object type in the Cosmic dashboard
Log in to the Cosmic dashboard and create a new Blog Posts
Object type in a new or existing Project with the following metafields:
- Image: Image type with key
image
- Content: Rich text with key
content
Add content
Add a few blog posts to get some content ready to be delivered.