This Node.js sample application uses the Express framework and Bootstrap to build a simple, scalable customer signup form that is deployed to AWS Elastic Beanstalk. The application stores data in Amazon DynamoDB and publishes notifications to the Amazon Simple Notification Service (SNS) when a customer fills out the form.
The code includes several Bootstrap themes from bootswatch.com. You can dynamically change the active theme by setting the THEME environment variable in the Elastic Beanstalk Management Console:
Installed themes include:
The application stores connection info in a JSON file, app_config.json. The key-value pairs are as follows:
- AWS_REGION: the AWS region code, e.g. 'us-west-2'
- STARTUP_SIGNUP_TABLE: the name of the DynamoDB table where the app stores signup data (e.g. 'my-ddb-table')
- NEW_SIGNUP_TOPIC: The ARN of the SNS topic that the app uses to send notifications (e.g. 'arn:aws:sns:us-west-2:123456789012:my-supercool-app')
Currently, the values are set to empty strings. You'll need to enter appropriate values for your environment.