Git Product home page Git Product logo

lubdhok-foundation's Introduction

Lubdhok Foundation Site

Netlify Status

Tech Stack

Prerequisites

  1. Install nvm with the following command
   curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
  1. Install specific node version (10.22.0 Recommended)
  nvm install 10.22.0
  nvm use 10.22.0
  1. Install yarn (follow this instruction)
   brew install yarn

Getting Started

  1. Go to the directory
 cd netlify-gatsby-contentful
  1. Install packages
  yarn
  1. Create a file .env.development and paste the following with proper CONTENTFUL_SPACE_ID, CONTENTFUL_ACCESS_TOKEN and CONTENTFUL_MANAGEMENT_TOKEN
CONTENTFUL_SPACE_ID='<Get the spaceId from contentful Settings > API Keys > Content Delivery Token'
CONTENTFUL_ACCESS_TOKEN='<Get the spaceId from contentful Settings > API Keys > Content Delivery Token>'
CONTENTFUL_MANAGEMENT_TOKEN='<Get management token from Settings > API Keys > Content Management Token'
CONTENTFUL_ENV='dev'
  1. Follow the commands

yarn run dev

Run in the project locally and visit http://localhost:8000

yarn run build

Run a production build into ./public. The result is ready to be put on any static hosting you prefer.

Import-Export Contentful Data

To export dev environment data

  yarn run export:dev

To export master environment data

  yarn run export:master

To import dev environment data

  yarn run import:dev --filename=<name of the file you want to import>

To import master environment data. BE CAREFUL WHILE RUNNING THIS SCRIPT. IT WILL OVERWRITE ALL THE MASTER CONTENTS

  yarn run import:master --filename=<name of the file you want to import>

lubdhok-foundation's People

Contributors

nutboltu avatar farigys avatar imranhasanhira avatar lubdhok-foundation avatar

Watchers

 avatar Md. Maksud Alam Chowdhury avatar Ashiq Uz Zoha avatar  avatar  avatar Lubaba Nuzhat Tasneem avatar

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.