Kick off your project with this recipe boilerplate

Overview
Flotiq logo

Gatsby starter for recipes with Flotiq source

Kick off your project with this recipe boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.

Live Demo: https://flotiqgatsbyrecipe1.gatsbyjs.io

This project use:

  • Flotiq - Headless CMS for string your data (You can create account here)
  • Tailwind - utility-first CSS framework
  • Flotiq source plugin - connector for fetching data from Flotiq
  • Flotiq components for react - components library designed and written to work perfectly with Flotiq Content Objects and display your data beautifully

This project works on node ^14.17.0 || >=16.0.0, we do not support node 15.

Quick start

  1. Start the project from template using Flotiq CLI

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

    gatsby new flotiq-gatsby-recipe-1 https://github.com/flotiq/flotiq-gatsby-recipe-1.git
  3. 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.development inside the root of the directory, with the following structure:

    GATSBY_FLOTIQ_API_KEY=YOUR FLOTIQ API KEY
    GA_TRACKING_ID=YOUR GA TRACKING KEY
    
  4. Start developing.

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

    cd flotiq-gatsby-recipe-1/
    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 data to your account, before running gatsby develop run:

    flotiq import [flotiqApiKey] .

    It will add one example object to your Flotiq account.

    Note: You need to put your Read and write API key as the flotiqApiKey for import to work, You don't need any content types in your account.

  5. 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 the flotiq-gatsby-recipe-1 directory in your code editor of choice and edit src/templates/index.js. Save your changes and the browser will update in real time!

  6. Manage your content using Flotiq editor

    You can now easily manage your content using Flotiq editor

Deploy

Deploy this starter with one click on Gatsby Cloud:

Deploy to Gatsby Cloud

You can also deploy this project to Heroku in 3 minutes:

Deploy

Or to Netlify:

Deploy

What's inside?

A quick look at the top-level files and directories you'll see in a Gatsby project.

.
├── .flotiq
├── .github
├── node_modules
├─┬ src
│ ├── assets
│ ├── components
│ ├── layouts
│ ├── pages
│ ├── sections
│ ├── style
│ └── templates
├── .eslintignore
├── .eslintrc.js
├── .gitignore
├── .prettierignore
├── .prettierrc
├── app.json
├── gatsby-browser.js
├── gatsby-config.js
├── gatsby-node.js
├── LICENSE
├── netlify.toml
├── package.json
├── README.md
├── static.json
├── tailwind.config.js
└── yarn.lock
  1. .flotiq: This directory contains content types necessary to starter to work.

  2. .github: This directory contains templates of GitHub issues.

  3. /node_modules: This directory contains all packages that your project depends on (npm packages) and are automatically installed.

  4. /src: This directory will contain all the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. src is a convention for “source code”.

  5. /src/assets: This directory will contain all static assets for the project (images, favicons, custom fonts).

  6. /src/components: This directory will contain all small build blocks for your templates and layouts.

  7. /src/layouts: This directory will contain all layout templates for your pages.

  8. /src/pages: This directory will contain all static pages for the project.

  9. /src/sections: This directory will contain all big build blocks for your project.

  10. /src/style: This directory will contain global styles for the project.

  11. /src/templates: This directory will contain all templates for automatically generated pages.

  12. .eslintignore: This file tells eslint which files it should not track / not fix.

  13. .eslintrc.js: This is a configuration file for Eslint. Eslint is a tool to help keep the formatting of your code consistent automatically.

  14. .gitignore: This file tells git which files it should not track / not maintain a version history for.

  15. .prettierignore: This file tells prettier which files it should not track / not fix.

  16. .prettierrc: This is a configuration file for Prettier. Prettier is a tool to help keep the formatting of your code consistent.

  17. app.json: Configuration file for Heroku deploy. You can safely remove this file if you do not plan to deploy on Heroku.

  18. gatsby-browser.js: This file is where Gatsby expects to find any usage of the Gatsby browser APIs (if any). These allow customization/extension of default Gatsby settings affecting the browser.

  19. gatsby-config.js: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the config docs for more detail).

  20. gatsby-node.js: This file is where Gatsby expects to find any usage of the Gatsby Node APIs (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.

  21. LICENSE: This Gatsby starter is licensed under the MIT license.

  22. netlify.toml: Configuration file for Netlify deploy. You can safely remove this file if you do not plan to deploy on Netlify.

  23. package.json: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc.). This manifest is how npm knows which packages to install for your project.

  24. README.md: A text file containing useful reference information about your project.

  25. static.json: Configuration file for caching the project.

  26. tailwind.config.js: Configuration file for tailwind.

  27. yarn.lock: This is an automatically generated file based on the exact versions of your yarn dependencies that were installed for your project. (You won’t change this file directly).

Learning Gatsby

Looking for more guidance? Full documentation for Gatsby lives on the website. Here are some places to start:

Learning Flotiq

Full documentation for Flotiq lives on this website.

Documentation for gatsby starters is here.

Collaborating

If you wish 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.

You might also like...

A social-media mock app for the ones who love to read - and maybe show it off

🐋 🐳 Cachalote 🐳 🐋 Share what you are reading and find people who also likes it - or not! What does it do? This app focuses on three main questions

May 22, 2022

An ERC-721 like NFT contract with Plutus scripts and Lucid as off-chain framework

Gatsby minimal TypeScript starter 🚀 Quick start Create a Gatsby site. Use the Gatsby CLI to create a new site, specifying the minimal TypeScript star

Sep 23, 2022

Trying to learn Svelte. Based off the official tutorial. Readme has notes!

Learning Svelte! A JavaScript library An open-source front end compiler Instead of using a virtual DOM, Svelte will directly update the DOM in an effi

Jul 5, 2022

The (extremely) lightweight alternative to the mmenu.js plugin for creating off-canvas mobile menus.

The (extremely) lightweight alternative to the mmenu.js plugin for creating off-canvas mobile menus.

mmenu light The (extremely) lightweight alternative to the mmenu.js plugin for creating off-canvas mobile menus with the exact look and feel. Examples

Dec 12, 2022

Vaultacks lets users store files off-chain on Gaia. Files are encrypted by default but also can be made public and shared

Vaultacks lets users store files off-chain on Gaia. Files are encrypted by default but also can be made public and shared

Vaultacks Vaultacks is built on the Stacks Chain. It lets users upload files to Gaia, a off-chain data storage system. Vaultacks currently uses the de

Sep 14, 2022

Have you contributed to Open-source? Now it's time to show off to the world!

Have you contributed to Open-source? Now it's time to show off to the world!

Hacktobered.com I decided to build this fun project during Hacktoberfest 2022. Here are some details about its initial idea / problem statement, tech

Oct 30, 2022

A tool for increasing the off-by-one bug in ordinal explorers

A tool for increasing the off-by-one bug in ordinal explorers

Breaker of jpegs A tool for increasing the off-by-one bug in ordinal explorers How to break inscription numbers On 2023-05-04 I introduced an off-by-o

Aug 9, 2023

Simple NextJS Project Template to write less boilerplate code when starting a new Next JS Project

Simple NextJS Project Template to write less boilerplate code when starting a new Next JS Project

Feb 12, 2022

This is a boilerplate for creating your own languages for various use cases. You can even create your own programming language from scratch!

Bootstrap compiler This is a bootstrap compiler that can be used to compile to compiler written in the target language. You can write a compiler in th

Nov 14, 2022
Owner
flotiq
Flotiq is an effortless headless CMS with powerful integrations and OpenAPI support
flotiq
Use javascript and css to build a StreetFighter Ryu,walk,jump,basic punch kick,launch fireball and dragon punch.

SFRyu Use javascript and css to build a StreetFighter Ryu,walk,jump,basic punch kick,launch fireball and dragon punch. 因為小時候就很喜歡玩快打旋風,於是用Javascript,CS

null 21 Sep 1, 2022
The Blitz.js Recipe for installing @semantic-release/github.

semantic-release-github The Blitz.js Recipe for installing @semantic-release/github. blitz install custom-recipes/semantic-release-github -y More info

Custom Recipes 1 Apr 9, 2022
Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript and Node.js.

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript and Node.js.

Berry 243 Jan 8, 2023
How often do you get asked about the gadgets or software that you use? If the answer is quite often, you should be trying show off out. Curate the list of gadgets and software and share it with your fans and followers.

Show Off - Showcase your setup! How often do you get asked about the gadgets or software that you use? If the answer is quite often, you should be try

Adithya Sreyaj 15 Nov 24, 2022
Will rock your s/o/x off — This is war you "hackerman" 🤓

tiktxk An open source, privacy first Cloudflare Worker for generating TikTok video download links. Replace the o with x and you'll get served the vide

Britmoji Inc. 30 Dec 12, 2022
A boilerplate for ExpressJs projects configured with ESLint, Prettier & Airbnb Setup. The boilerplate utilises RESTful architecture and uses Mongodb.

ExpressJs-Boilerplate An ExpressJs boilerplate configured with ESLint, Prettier & Airbnb Setup. The boilerplate utilises RESTful architecture and uses

Hammas bin Farrukh 4 Mar 8, 2023
A simple browser extension, intended to get you "Back To Work" when you start slacking off to one of those really addictive sites.

Back to Work A simple browser extension, intended to get you Back To Work when you start slacking off to one of those really addictive sites. What doe

Dheeraj Lalwani 29 Nov 19, 2022
Generate a password based off user inputs with speed ⚡

speedy-speedy-password Generate a password based off user inputs with speed ⚡ Install NPM npm i speedy-speedy-password Yarn yarn add speedy-speedy-pa

Brayden 5 Feb 2, 2022
Hands Off Ukraine Web Component

A banner web component that enables companies/individuals to quickly show their support for Ukraine regarding the recent Russian invasion. It hopes to raise awareness to the incident and allow users to quickly access support websites & donate.

Filipe Freire 8 Mar 15, 2022
Keep a track of all the tasks you need to do and Check off ones you have completed - Created using HTML, SCSS, JavaScript and Webpack.

To Do List Keep a track of tasks you need to do. An Application where you can keep a track of the tasks you need to do and checkout the ones that have

Awais Amjed 19 Jul 28, 2022