Git Product home page Git Product logo

dega-themes-gatsby's Introduction

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

dega-themes-gatsby's People

Contributors

chakradhar32 avatar dependabot[bot] avatar deshetti avatar dmonark avatar fyrepenguin avatar mhjadav avatar surajmn1 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dega-themes-gatsby's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.