A static website builder for City Lights built with Gatsby, Contentful, and Netlify.
Thanks to the Gatsby community for providing the base template Gatsby Contentful Starter.
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.
- Simple content model and structure. Easy to adjust to your needs.
- Use the synchronization feature of our Delivery API.
- Responsive/adaptive images via gatsby-image and our Images API.
$ git clone https://github.com:designtypist/city-lights.git
$ npm install
or use Gatsby Cli
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.
Run the project locally with live reload in development mode.
Run a production build into ./public
. The result is ready to be put on any static hosting you prefer.
Spin up a production-ready server with your blog. Don't forget to build your page beforehand.