CSYE 6225 Assignments Karan Wadhwa NUID: 002663034
- Install npm packages
$ npm install
- Create
.env
file from.env.example
template - Install MySQL and create an empty database as defined in
.env
- Run setup script to initialize database tables
$ npm run setup
- Run unit tests
$ npm run test
- Start node server
$ npm run start
- Create a zip file of the project at
/
- Change directory to
/src/infra
$ cd src/infra
- Validate Packer file
$ packer validate -var 'aws_access_key_id=<aws_access_key_id>'
-var 'aws_secret_access_key=<aws_secret_access_key>'
-var 'db_password=<sql db password>'
-var 'ami_users=<ami users>'
-var 'aws_region=<aws region where ami will be created>'
-var 'subnet_id=<default subnet id from the specified aws region>'
ami.pkr.hcl
- Create AMI
$ packer build -var 'aws_access_key_id=<aws_access_key_id>'
-var 'aws_secret_access_key=<aws_secret_access_key>'
-var 'db_password=<sql db password>'
-var 'ami_users=<ami users>'
-var 'aws_region=<aws region where ami will be created>'
-var 'subnet_id=<default subnet id from the specified aws region>'
ami.pkr.hcl