End to end serverless blogging & CMS system. Built with GraphQL, Gatsby & AWS Amplify. Theming based on the Novela theme by Narative.
JAMstack CMS is built to give you the ability to deploy a full stack serverless website in just a few minutes. JAMstack CMS includes the following features built in:
- Authentication & authorization for admin users
- Database with secure API access
- Server-rendered front end for builds
- Dynamic front-end for admins (enables admins to create, update, and delete content)
- Configurable settings
- Admin dashboard
With server rendered applications there are typically two types of execution environments, one at build time and one at run time.
The issue with dealing with server rendered applications in the traditional way was that it was not possible to make edits directly in the UI because the build would not accurately represent the current version of the application served at the last build time.
JAMstack CMS solves this issue by giving you two views at run time, including both the static build as well as a dynamic Admin view that allows you to manipulate content and preview pages before building.
This way you have the opportunity to test out new posts and web pages before deploying them to your live environment.
-
Static page - As with any Gatsby site, can still create a custom static page and route by just creating a new file in the
src/pages
directory. These pages will all be created at build time. -
Blog post - In the Admin panel you can create Blog posts that will be dynamically generated at build time. These posts will be queried at build time from the server and used to build the pages. Any images referenced from your image gallery will be downloaded and served locally from the public/downloads folder.
-
Dynamic page - Similarly to creating a post, you can use the WYSYWIG editor and drag and dop interface to create web pages complete with rich text editing.
While the CMS is ready to deploy today as it is, this project is still in beta. There is quite a bit of work to do before I am ready to ship version 1. Here are some of the things I will be focusing on:
- Improved accessibility
- Performance
- Comment feature
- Native Gatsby theming
- Enabling other cloud providers
- More page boilerplates
- Tests
- TypeScript
- Massive code cleanup 😅
If you are interested in contributing to this project, please let me know!
- Update the Amplify CLI to the latest version
$ yarn global add @aws-amplify/cli
- Clone the repository
$ git clone https://github.com/jamstack-cms/jamstack-cms.git
$ cd jamstack-cms
$ yarn
- Configure admin emails
Open amplify/backend/function/jamstackcmsc9ee2ce6PostConfirmation/src/add-to-group.js and update the admin emails for the users you'd like to add by adding them to the array of emails on line 7.
const adminEmails = ["youremail1@domain.com", /* ... other email addresses */]
- Initialize the Amplify project
$ yarn run jamstack-init
During the initialization, you'll be prompted for the following
? Do you want to configure Lambda Triggers for Cognito? Y
? Which triggers do you want to enable for Cognito
❯◉ Post Confirmation
? What functionality do you want to use for Post Confirmation
❯◉ Create your own module
? Enter the name of the group to which users will be added. Admin
- Deploy the back end
$ yarn run jamstack-push
- Run the project
$ yarn run jamstack-develop
-
Sign up and then sign in with an Admin email address by clicking on the Profile link in the footer.
-
Once signed in as an Admin, you will see the Admin link in the navigation. Click on the Admin link to begin creating posts and pages.
-
Once you've created a post, run
npm run jamstack-develop
to create a new build and see the new live post.
To deploy to Amplify Console or Netlify, you'll need to set the environment variable for APPSYNC_KEY
. This value can be found in jamstack-api-key.js
.
Once deployed, you can configure the webhook url by running the following command:
$ node configureWebhook
WordPress has dominated for quite some time with estimates that it powers around 30% of all websites today. One of the reasons for the popularity of WordPress is that it is composed of all of the elements needed for such a platform, including these necessary elements:
- Authentication & authorization
- Database
- API
- Front end
While WordPress started as a blogging tool, it has evolved over the years into a powerful website builder and a robust content management system.
With updated tooling on both the front end and the back end we are starting to see the need for similar tooling in our modern stack.
JAMstack CMS fills in this gap by giving you a customizable end to end solution allowing you to get up and running with a full stack serverless website & blog with just a few commands on your command line.
- Authentication
- Sharable preview links
- Secure, signed images
- Admin panel
- Comments
- Server-side rendering
- Comments
- Video support
- Dynamic logo from Admin
- Analytics dashboard
- Post categories
- WYSWYG option for blog posts
- Providers for non AWS specific services
- Custom authentication flow
- Offline / caching of posts
- Pagination of posts
- Dynamic dropdown menu of pages
- More articles from
Here are some of the tools used to build JAMstack CMS:
- Gatsby
- Emotion
- Date FNS
- Marked
- AWS Amplify
- Slate