Gatsby Aamu.app starter for creating a blog
If you want to use try this out yourself, you first need to set up a project on Aamu.app which will host your data.
See the demo site here: DEMO
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 Aamu.app comes into play.
With Aamu.app 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 or Netlify.
- Simple content model and structure. Easy to adjust to your needs.
- Responsive/adaptive images via gatsby-image
To use this website, you need an Aamu.app account. Create one/log into your account and then create a database from the template gatsby-aamu-starter:
After that, you need an API key. Go to database settings for your newly created database and create an API key. Copy-paste that to somewhere safe.
You can use this repository on Netlify. After creating an Aamu.app database, click this:
Netlify will ask your permission to clone this repository — First click Connect to GitHub, then click Authorize.
You will be then taken to a page which asks your secret token. Enter your API key here.
Submit the form and Netlify will start building your site. This cloned repository will be on your GitHub account.
2:33:39 PM: error "gatsby-source-graphql" threw an error while running the sourceNodes lifecycle:
2:33:39 PM: not finished source and transform nodes - 0.593s
Your Aamu.app API key is wronng or missing.
git clone [email protected]:AamuApp/gatsby-aamu-starter.git
cd gatsby-aamu-starter
npm install
Or use the Gatsby CLI.
$ gatsby new aamu-starter https://github.com/AamuApp/gatsby-aamu-starter
This project comes with a Aamu.app setup command npm run setup
.
This project comes with a few handy commands for linting and code fixing. The most important ones are the ones to develop and ship code. You can find the most important commands below.
Run in the project locally:
npm run dev
Run a production build into ./public
. The result is ready to be put on any static hosting you prefer:
npm run build
Run a production build into ./public
and publish the site to GitHub pages:
npm run deploy
Removes all dependencies, scripts and data from the installation script.:
npm run cleanup-repository
- Tutorial video series "Building a blazing fast website with GatsbyJS and Contentful" by @Khaledgarbaya