| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Concept proof prototype of serverless CMS using AWS Appsync, Aurora Serverless, Cognito, Serverless Framework and React
File Structure
Change admin email, database name, database username database user password in nodejs/serverless.yml
eg.
custom:
poolName: ${self:provider.stage}SimpleCMS
dbName: "simpleCMS"
dbUserName: "root"
dbPassword: "Password"
systemUserEmail: "dev@neami.app"
Set up AWS credentials
$ aws configure
Install Serverless framework
$ npm install -g serverless
Deploy
$ sls deploy --stage dev
const AWSConfig = {
amp: {
region: "ap-southeast-2",
identityPoolId: "YOUR_IDENTITY_POOLID",
userPoolId: "YOUR_COGNITO_POOLID",
userPoolWebClientId: "YOUR_COGNITO_POOLID_CLIENTID",
mandatorySignIn: false
},
appSync: {
url: "YOUR_APPSYNC_ENDPOINT",
region: "ap-southeast-2"
}
};
Install dependencies
$ npm install
Run app
$ npm start
Build app
$ npm run build
Deploy app to AWS S3 bucket
$ aws s3 cp build s3://YOUR_BUCKET_NAME
| Back | FazBrowse Home | New Git URL |