Serverless Backend

The serverless back end for JAMstack CMS. Use this back end to deploy a custom CMS using your own front end.
Alternatives To Serverless Backend
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Redwood16,0091814 hours ago3,293September 24, 2022417mitTypeScript
The App Framework for Startups
Jamstack.org2,585
11 days ago111mitNunjucks
The official Jamstack site
Jamstack Ecommerce1,759
5 months ago21mitJavaScript
A starter project for building performant ECommerce applications with Next.js and React
Ecommerce Netlify1,398
10 months ago29Vue
🛍 A JAMstack Ecommerce Site built with Nuxt and Netlify Functions
Commercejs Nextjs Demo Store1,010
3 months ago32bsd-3-clauseJavaScript
Commerce demo store built for the Jamstack. Built with Commerce.js, Next.js, and can be one-click deployed to Netlify. Includes product catalog, customer login, categories, variants, cart, checkout, payments (Stripe) order confirmation, and printable receipts.
Githut805
a month ago9agpl-3.0JavaScript
Github Language Statistics
Jamstack Cms712
2 years ago17mitJavaScript
Modern full stack CMS. Built with Gatsby, GraphQL, AWS Amplify, and Serverless technologies.
Serverlessui5362a year ago30July 24, 20211TypeScript
A command-line utility for deploying serverless applications to AWS. Complete with custom domains, deploy previews, TypeScript support, and more.
Functions.netlify.com515
11 days ago71SCSS
Tutorials, examples, workshops and a playground for serverless with Netlify Functions
Eleventyone440
a year ago11mitJavaScript
A scaffold for a quick start building with the Eleventy SSG
Alternatives To Serverless Backend
Select To Compare


Alternative Project Comparisons
Readme

JAMstack CMS infrastructure as code

This is the back end infrastructure that powers the JAMstack CMS.

If you would like to build another CMS based on the JAMstack CMS, this is a great place to start. It includes the following:

  1. GraphQL API with authorization rules.

  2. Amazon S3 for storage of images, videos, and files.

  3. Authentication service for user management and general authentication and authorization.

  4. Lambda functions for image resizing and post-confirmation of users to add to groups.

To deploy this backend with another app

  1. Download the amplify folder into the root of the application you'd like to build

  2. Run the following command:

amplify init
  1. Update the schema to match your requirements.

  2. To update any configuration, you can run the following commands:

amplify update storage

amplify update api

amplify update auth

amplify update function

Updating / evolving the GraphQL schema

To update the schema, open the schema at amplify/backend/api/jamstackcms. Here is the base schema:

  
type Post @model
  @auth (
      rules: [
          { allow: groups, groups: ["Admin"], operations: [create, update, delete] },
          { allow: private, operations: [read] },
          { allow: public, operations: [read] }
      ]
  ) {
  id: ID!
  title: String!
  description: String
  content: String!
  cover_image: String
  createdAt: String
  published: Boolean
  previewEnabled: Boolean
  categories: [String]
  author: User @connection
}

type Comment @model @auth(
  rules: [
    { allow: groups, groups: ["Admin"], operations: [create, update, delete] },
    { allow: owner, ownerField: "createdBy", operations: [create, update, delete] }
  ]
) {
  id: ID!
  message: String!
  createdBy: String
  createdAt: String
}

type Settings @model @auth(rules: [
    { allow: groups, groups: ["Admin"] },
    { allow: groups, groupsField: "adminGroups"},
    { allow: public, operations: [read] },
  ]) {
  id: ID!  
  categories: [String]
  adminGroups: [String]
  theme: String
  border: String
  borderWidth: Int
  description: String
}

type Preview @model
  @auth (
      rules: [
        { allow: groups, groups: ["Admin"] },
        { allow: private, operations: [read] }
      ]
  ) {
  id: ID!
  title: String!
  description: String
  content: String!
  cover_image: String
  createdAt: String
  categories: [String]
}

type Page @model(subscriptions: null)
  @auth (
      rules: [
        { allow: groups, groups: ["Admin"] },
        { allow: private, operations: [read] },
        { allow: public, operations: [read] }
      ]
  )
{
  id: ID!
  name: String!
  slug: String!
  content: String!
  components: String
  published: Boolean
}

type User @model
  @auth(rules: [
    { allow: owner },
    { allow: groups, groups: ["Admin"]},
    { allow: public, operations: [read] }
  ])
{
  id: ID!
  name: String
  username: String
  avatarUrl: String
}

Once you've made the updates, run the following command to test the new API:

amplify mock

Once you've tested the updates, run the following command to deploy the new API:

amplify push
Popular Jamstack Projects
Popular Serverless Projects
Popular Software Architecture Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Deployment
Graphql
Schema
Content Management System
Serverless
Dynamodb
Jamstack