This is the 1st iteration of akshay-kumar.netlify.app built with Gatsby & Strapi and hosted with Netlify
-
Install the Gatsby CLI
npm install -g gatsby-cli
-
Install and use the correct version of Node using NVM
nvm install
-
Install dependencies
npm install
-
In order to use complete project you will need:
- Strapi Instance with all Contet-Types and at least single instance of data (for each content-type). Check gatsby-config and graphQL queries in components.
- Allow Permissions for all content-type(s)
- If you add/modify new content-types, Make sure such content-types exist in your Strapi application. Or replace/delete them in gatsby-config.js
{
resolve: `gatsby-source-strapi`,
options: {
apiURL: `http://localhost:1337`,
queryLimit: 1000, // Default to 100
// contentTypes: [`jobs`, `projects`, `blogs`, ],
//singleTypes:[`about` ]
contentTypes: [`jobs`, `projects`, `skills`],
singleTypes: [`about`],
},
},
-
Start the gatsby development server using command
npm run develop
-
Generate a full static production build
npm run build
-
Either use netlify-CLI or drag and drop public folder after build to deploy on netlify.