Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelmang/eat-the-fat
A homemaker blog
https://github.com/michaelmang/eat-the-fat
Last synced: about 5 hours ago
JSON representation
A homemaker blog
- Host: GitHub
- URL: https://github.com/michaelmang/eat-the-fat
- Owner: michaelmang
- License: mit
- Created: 2020-12-22T19:57:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-04T21:56:11.000Z (almost 4 years ago)
- Last Synced: 2024-09-10T18:03:24.787Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 977 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Contentful Gatsby Starter Blog
Create a [Gatsby](http://gatsbyjs.com/) blog powered by [Contentful](https://www.contentful.com). This is a simplified version of the [Gatsby Contentful Starter](https://github.com/contentful-userland/gatsby-contentful-starter) which is maintained by our Community.
![The index page of the starter blog](https://rawgit.com/contentful-userland/gatsby-contentful-starter/master/screenshot.jpg "The index page of the starter blog")
Static sites are scalable, secure and have very little required maintenance. They come with a drawback though. Not everybody feels good editing files, building a project and uploading it somewhere. This is where Contentful comes into play.
With Contentful and Gatsby you can connect your favorite static site generator with an API that provides an easy to use interface for people writing content and automate the publishing using services like [Travis CI](https://travis-ci.org/) or [Netlify](https://www.netlify.com/).
## Features
- Simple content model and structure. Easy to adjust to your needs.
- Use the [synchronization feature](https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/synchronization) of our [Delivery API](https://www.contentful.com/developers/docs/references/content-delivery-api/).
- Responsive/adaptive images via [gatsby-image](https://www.gatsbyjs.org/packages/gatsby-image/) and our [Images API](https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/synchronization/initial-synchronization-of-entries-of-a-specific-content-type).## Getting started
See our [official Contentful getting started guide](https://www.contentful.com/developers/docs/tutorials/general/get-started/).
### Get the source code and install dependencies.
```
$ git clone https://github.com/contentful/starter-gatsby-blog.git
$ npm install
```Or use the [Gatsby CLI](https://www.npmjs.com/package/gatsby-cli).
```
$ gatsby new contentful-starter-blog https://github.com/contentful/starter-gatsby-blog/
```### Set up of the needed content model and create a configuration file
This project comes with a Contentful setup command `npm run setup`.
This command will ask you for a space ID, and access tokens for the Contentful Management and Delivery API and then import the needed content model into the space you define and write a config file (`./.contentful.json`).
`npm run setup` automates that for you but if you want to do it yourself rename `.contentful.json.sample` to `.contentful.json` and add your configuration in this file.
## Crucial Commands
### `npm run dev`
Run the project locally with live reload in development mode.
### `npm run build`
Run a production build into `./public`. The result is ready to be put on any static hosting you prefer.
### `npm run serve`
Spin up a production-ready server with your blog. Don't forget to build your page beforehand.
## Deployment
See the [official Contentful getting started guide](https://www.contentful.com/developers/docs/tutorials/general/get-started/).
## Contribution
Feel free to open pull requests to fix bugs. If you want to add features, please have a look at the [original version](https://github.com/contentful-userland/gatsby-contentful-starter). It is always open to contributions and pull requests.
You can learn more about how Contentful userland is organized by visiting [our about repository](https://github.com/contentful-userland/about).