https://github.com/blackspherefollower/script-store
https://github.com/blackspherefollower/script-store
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/blackspherefollower/script-store
- Owner: blackspherefollower
- License: mit
- Created: 2018-05-07T18:19:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T04:56:51.000Z (over 2 years ago)
- Last Synced: 2025-01-30T17:47:02.944Z (4 months ago)
- Language: JavaScript
- Size: 659 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
   [](https://github.com/ellerbrock/open-source-badges/) 
### Overview
Boilerplate for a stateful Express.js application running on AWS Lambda using:
- Claudia.js to deploy/manage AWS assets
- Babel to transpile code from es2017
- Webpack to bundle static files
- AirBnb eslint rules for code styling
- DynamoDB for session synchronization (or with [mozilla's client-session](https://github.com/rafaelrpinto/aws-lambda-stateful-express-boilerplate/tree/client-session))
- csurf for protection against CSRF
- Helmet.js to prevent several attack vectors
- Handlebars for server-side templating
- Local development with dynamodb_local
- Yarn for dependency managementIf you are loking for a native serverless boilerplate check [this project](https://github.com/rafaelrpinto/serverless-boilerplate).
### Running locally
Start a local DynamoDB on port **8000** as [described here](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html) or as a [Docker container](https://hub.docker.com/r/cnadiminti/dynamodb-local/). Then run:
`yarn start`
Then access the application on [https://localhost:8443](https://localhost:8443).
### Deploying to AWS
Setup AWS cli as [described here](https://docs.aws.amazon.com/lambda/latest/dg/setup.html).
Then run:
`REGION=eu-west-2 PROFILE=myProfile yarn run deploy`
Don't forget to add a trailing '/' on the lambda URL if you are not using a custom domain, otherwise relative paths won't work.
### Updating a deployed app
`PROFILE=myProfile yarn run update`
### Destroying/undeploying the app
`PROFILE=myProfile yarn run destroy`