Gloria Server

Main dependencies

  • Node
  • Express
  • Socket.io

Setup

npm i

Development

npm run dev

A Node microservice will start listening for requests at localhost:3000.

Deployment

npm version patch

AWS CLI

Follow these steps if you haven't installed the AWS CLI on your machine:

Create stack

You can deploy this microservice on AWS EC2 thanks to the AWS CLI and AWS CloudFormation.

aws cloudformation create-stack --stack-name ec2-deploy-test --template-body file://template.yml

Delete stack

If you want to delete a previously deployed stack:

aws cloudformation delete-stack --stack-name ec2-deploy-test

Deleted EC2 instances will disappear after 10-20 minutes.

Upload certificate to AWS IAM

aws iam upload-server-certificate --server-certificate-name websocket-test --certificate-body file://server.cert --private-key file://server.key

Useful links