Giter Site home page Giter Site logo

toukirnaim08 / react-typescript-gatsby-prismic Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 623 KB

React-Gatsby application using Prismic’s GraphQL API.

TypeScript 70.15% SCSS 12.82% JavaScript 16.40% Shell 0.63%
bootstrap gatbsy graphql javascript prismic react typescript

react-typescript-gatsby-prismic's Introduction

Prismic Graphql

Prismic’s GraphQL API is a read-only endpoint that allows us to perform deep fetching and selective fetching for documents from your Prismic repository.

This application describes how to use Prismic’s GraphQL API with React, but you can extend this application and instructions to any other framework with a GraphQL integration.

Create new repository in prismic and generate new access token. Create new .env file using new prismic info.

Put your repo name and access token in .env.eaxmple

GATSBY_PRISMIC_REPO_NAME=YOUR_REPO_NAME
PRISMIC_ACCESS_TOKEN=YOUR_TOKEN

In this application, a notifiaction pop up and web page body are created using prismic documents.
You can use existing json formats in custom_type to create your own documents or create new one for pop up or body.

🚀 Quick start

Create env for development or production

# create new env for development and production
cp .env.eaxmple .env.production
cp .env.eaxmple .env.development

Install all the packages

npm install

Start developing.

Navigate into your new site’s directory and start it up.

cd React-Typescript-Gatsby-Prismic/
npm run develop

Open the code and start customizing!

Your site is now running at http://localhost:8000!
You can run grpahql query at http://localhost:8000/___graphql

Learn more abount gatsby and prismic

🚀 Quick start (Gatsby Cloud)

Deploy this starter with one click on Gatsby Cloud:

Deploy to Gatsby Cloud

react-typescript-gatsby-prismic's People

Contributors

toukirnaim08 avatar

Watchers

 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.