The repository contains open sourced themes developed by Factly to generate modern websites using Dega CMS as a data source. Themes are developed using GatsbyJS and are free of cost to use.
We at Factly are making developing quality websites easier with Dega Themes and Dega CMS.
Themes website: ([https://astonishing-naiad-903741.netlify.app])
- You'll need DegaCMS API key, Space Id and the API endpoint to run a site.
- Node.js v18
Install source plugin to the project
npm install @factly/gatsby-source-dega
if you're using yarn
yarn add @factly/gatsby-source-dega
Add configuration to gatsby-config.js
create a file in root directory gatsby-config.js and add below code
module.exports = {
plugins: [
...
{
resolve: `@factly/gatsby-source-dega`,
options: {
spaceId: "",
accessToken: "",
uri: "",
},
},
]
};
yarn workspace [sitename] start
To run example site
ex -
yarn workspace factly-english start
mkdir project-name && cd project-name
yarn init -y -p
create a file in root directory gatsby-config.js and add below code
const siteMetadata = {
title: "Site title"
}
module.exports = {
plugins: [
{
resolve: '@factly/gatsby-theme-factly',
options: {
spaceId,
accessToken,
apiUrl,
siteUrl
}
}
]
};
yarn add gatsby react react-dom '@factly/gatsby-theme-factly'
gatsby develop
gatsby build