Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anddimario/stiva
Multicontent serverless cms on AWS with cognito, dynamodb and appsync based on AWS CDK
https://github.com/anddimario/stiva
amazon appsync aws cdk cms dynamodb multicontent serverless
Last synced: 4 months ago
JSON representation
Multicontent serverless cms on AWS with cognito, dynamodb and appsync based on AWS CDK
- Host: GitHub
- URL: https://github.com/anddimario/stiva
- Owner: anddimario
- Created: 2018-06-09T13:50:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T10:22:28.000Z (over 1 year ago)
- Last Synced: 2024-01-16T05:55:59.902Z (5 months ago)
- Topics: amazon, appsync, aws, cdk, cms, dynamodb, multicontent, serverless
- Language: TypeScript
- Homepage:
- Size: 1.19 MB
- Stars: 17
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Lists
- awesome-serverless - Stiva - Stiva is a headless CMS for multisite and dynamic multicontent, based on lambda, dynamodb and s3. (Content Management Systems)
README
# Stiva
These stacks create a cognito user pool with two defined group (user and admin) and a `Stiva` DynamoDB table configured as one table, using AppSync for backend
## Requirements
* AWS CDK v2
* NodeJS > 16## Installation
* Install npm packages: `npm install`
## Useful commands
* `npm run build` compile typescript to js
* `npm run clean` clean builded js
* `npm run watch` watch for changes and compile
* `npm run test` perform the jest unit tests
* `cdk deploy` deploy this stack to your default AWS account/region
* `cdk diff` compare deployed stack with current state
* `cdk synth` emits the synthesized CloudFormation template## CDK commands env Variables
Env variables to use in cdk commands:
* `TABLE_NAME`: define DynamoDB table name (**optional** default `Stiva`)
* `APP_NAME`: define app name (**optional** default `Stiva`)
* `COGNITO_SUBDOMAIN`: cognito domain prefix (subdomain) (**optional**)
* `AWS_REGION`
* `CDK_DEFAULT_ACCOUNT`
* `CDK_DEFAULT_REGION`## TEST
To run rest api test (canary test to use only after deployed stack on aws): `AWS_PROFILE=myprofile TEST_REST=true npm test rest`
**IMP** Need a rebuild before every test
**Note** Based on your OS config you should add aws environment variables
## Thanks
* [Borislav Hadzhiev](https://bobbyhadz.com/) for useful informations and reading