A point-of-sales app to sell our products in brick-and-mortar stores!
The Point-of-Sales is part of the ACME Fitness Serverless Shop. The goal of this specific service is to serve as the front-end for Point-of-Sales locations.
- An AWS Account
- Deployed the serverless apps of the ACME Fitness Serverless Shop
- A Pulumi account
Regardless which deployment option you take, you'll need to update the endpoint locations in script.js. If you choose to use CloudFormation, you'll also need to update the author in Makefile to make sure that the bucket name is unique. If you choose Pulumi, you'll also need to update the bucket in Pulumi.dev.yaml.
To deploy the Payment Service you'll need a Pulumi account. Once you have your Pulumi account and configured the Pulumi CLI, you can initialize a new stack using the Pulumi templates in the pulumi folder.
cd pulumi
pulumi stack init <your pulumi org>/acmeserverless-pos/devPulumi is configured using a file called Pulumi.dev.yaml. A sample configuration is available in the Pulumi directory. You can rename Pulumi.dev.yaml.sample to Pulumi.dev.yaml and update the variables accordingly. Alternatively, you can change variables directly in the main.go file in the pulumi directory. The configuration contains:
config:
aws:region: us-west-2 ## The region you want to deploy to
awsconfig:s3:
bucket: mybucket ## The bucket in which you want to store the POS app
awsconfig:tags:
author: retgits ## The author, you...
feature: acmeserverless
team: vcs ## The team you're on
version: 0.2.0 ## The versionTo create the Pulumi stack, and create the POS service, run pulumi up.
If you want to keep track of the resources in Pulumi, you can add tags to your stack as well.
pulumi stack tag set app:name acmeserverless
pulumi stack tag set app:feature acmeserverless-pos
pulumi stack tag set app:domain posClone this repository
git clone https://github.com/retgits/acme-serverless-pos
cd acme-serverless-posChange directories to the deploy/cloudformation folder
cd ./deploy/cloudformationUse make to deploy
make deployAfter the deployment you'll be able to see the Point-of-Sales app on
http://<bucket-name>.s3-website.us-west-2.amazonaws.com
# or
http://<bucket-name>.s3-website-us-west-2.amazonaws.comPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
See the LICENSE file in the repository