Giter Site home page Giter Site logo

flotiq / gatsby-starter-recipes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tryghost/gatsby-starter-ghost

9.0 2.0 3.0 21.52 MB

A Gatsby starter to build your own recipes page with Flotiq and Gatsby.

Home Page: https://flotiq.com

License: MIT License

JavaScript 64.20% CSS 35.80%
flotiq gatsby gatsby-starter

gatsby-starter-recipes's Introduction

Flotiq logo

Gatsby Starter - Recipes

We are retiring this starter, please use https://github.com/flotiq/flotiq-gatsby-recipe-1 and https://github.com/flotiq/flotiq-gatsby-recipe-2

This is a Gatsby starter project for a recipes website. It's configured to pull recipe data from Flotiq and can be easily deployed to your cloud hosting - Heroku, Netlify, Gatsby Cloud, etc.

Live Demo: https://flotiq-starter-recipes.herokuapp.com

Screenshot

Quick start

  1. Start the project from template using Flotiq CLI

    npm install -g flotiq-cli
    flotiq start [flotiqApiKey] [projectName] https://github.com/flotiq/gatsby-starter-recipes.git
    • flotiqApKey - Read and write API key to your Flotiq account
    • projectName - project name or project path (if you wish to start or import data from the current directory - use .)
  2. You can also start the project from template using Gatsby CLI

    gatsby new gatsby-starter-recipes https://github.com/flotiq/gatsby-starter-recipes.git
  3. Setup "Recipe" Content Type in Flotiq

    Create your Flotiq.com account. Next, create the Recipe Content Type:

    Recipe content type in flotiq

    Note: You can also create Recipe using Flotiq REST API.

  4. Configure application

    The next step is to configure our application to know from where it has to fetch the data.

    You need to create a file called .env inside the root of the directory, with the following structure:

    GATSBY_FLOTIQ_API_KEY=YOUR FLOTIQ API KEY
    
  5. Start developing

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

    cd gatsby-starter-recipes
    npm install
    gatsby develop

    This step is optional and is not necessary if you used flotiq-cli to start the project.

    If you wish to import example recipes to your account, before running gatsby develop, install flotiq-cli, and run in project directory:

    flotiq import [flotiqApiKey] .

    It will add 4 images and 2 recipes to your Flotiq account.

    Note: ou need to put your Read and write API key as the flotiqApiKey for import to work. You don't need the Recipe content type in your account. If you already have recipes with ids recipe-1 and recipe-2 they will be overwritten.

  6. Open the source code and start editing!

    Your site is now running at http://localhost:8000!

    Note: You'll also see a second link: http://localhost:8000/___graphql`. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

    Open a project directory in your code editor of choice and edit src/templates/index.js. Save your changes and the browser will update in real time!

  7. Manage your recipes using Flotiq editor

    You can now easily manage your recipes using Flotiq editor

    Managing recipes using Flotiq

Deploy

You can deploy this project to Heroku in 3 minutes:

Deploy

Or to Netlify:

Deploy

Collaborating

If you wish to to talk with us about this project, feel free to hop on our Discord Chat.

If you found a bug, please report it in issues.

gatsby-starter-recipes's People

Contributors

aileen avatar allouis avatar andrzejwp avatar ciotkacierpienia avatar daniellockyer avatar daviddarnes avatar dominikilski avatar dylantackoor avatar erisds avatar jerdam avatar johnonolan avatar karolnet avatar kerumen avatar kevinansfield avatar likrot avatar mskian avatar mtlynch avatar naz avatar paulmelnikow avatar peterzimon avatar renovate-bot avatar rishabhgrg avatar ryoheitomiyama avatar s33g avatar shrmnk avatar tanvibhakta avatar trzcina avatar vikaspotluri123 avatar yoranbrondsema avatar ziondials avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gatsby-starter-recipes's Issues

Error when running "npm run develop"

Running npm run dev produces the following error:

TypeError: Cannot read property 'activities' of undefined

This is a probably Gatsby version related issue. I created a PR (#15 )with updated dependencies. Tested it locally and on Gatsby Cloud and it works.

  • Gatsby Version: 2.20.4
  • Node Version: 12.13.0

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.