Coder Social home page Coder Social logo

datocms-react-lodging-spa-demo's Introduction

This app is a demo app for using DatoCMS contents via GraphQL api on a ReactJS app.

Setup the Project

Deploy on DatoCMS

Set up a DatoCMS project, with schema and data, to have a starting ground:

Deploy with DatoCMS

it will automatically clone and setup the project for you.

Set DatoCMS API token env variable

Once you have set up a DatoCMS project with the button above, edit the .env_sample file and add your REACT_APP_DATO_API_TOKEN. Then rename it to .env (check the webpack.config.js to see how .env is used).

You can find your API token in the Settings > API tokens section.

Run & Build

The first time run yarn to install dependencies.

Develop: yarn start

Build:yarn build

The build is created in the build folder, directly deployable on Surge, Netifly, etc.

Test your GraphQL queries at

https://graphql.datocms.com/graphiql?apitoken=${REACT_APP_DATO_API_TOKEN}

datocms-react-lodging-spa-demo's People

Contributors

lorezz avatar matjack1 avatar souljuse avatar stefanoverna avatar

Watchers

 avatar  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.