Skip to content

Open source themes to bootstrap websites developed on Dega CMS. The themes are developed using Gatbsy.

License

Notifications You must be signed in to change notification settings

factly/dega-themes-gatsby

Repository files navigation

Dega Themes

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])

Prerequisites

  • You'll need DegaCMS API key, Space Id and the API endpoint to run a site.
  • Node.js v18

Installing source plugin to your site

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

Run example sites

Create a theme

To run example site

ex -

yarn workspace factly-english start

To build new site

mkdir project-name && cd project-name

Add package.json file

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
      }
    }
  ]
};

Install packages

yarn add gatsby react react-dom '@factly/gatsby-theme-factly'

Run site

gatsby develop

Build site

gatsby build

About

Open source themes to bootstrap websites developed on Dega CMS. The themes are developed using Gatbsy.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published