Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karanwadhwa/webapp
CSYE 6225 Assignments
https://github.com/karanwadhwa/webapp
Last synced: 24 days ago
JSON representation
CSYE 6225 Assignments
- Host: GitHub
- URL: https://github.com/karanwadhwa/webapp
- Owner: karanwadhwa
- Created: 2023-01-28T22:57:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-22T19:16:03.000Z (over 1 year ago)
- Last Synced: 2024-10-12T23:43:46.734Z (about 1 month ago)
- Language: TypeScript
- Size: 275 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webapp - cloud
CSYE 6225 Assignments
Karan Wadhwa
NUID: 002663034## Quickstart
1. Install npm packages
```console
$ npm install
```2. Create `.env` file from `.env.example` template
3. Install MySQL and create an empty database as defined in `.env`
4. Run setup script to initialize database tables```console
$ npm run setup
```5. Run unit tests
```console
$ npm run test
```6. Start node server
```console
$ npm run start
```### Create AMI using Packer
1. Create a zip file of the project at `/`
2. Change directory to `/src/infra````console
$ cd src/infra
```3. Validate Packer file
```console
$ packer validate -var 'aws_access_key_id='
-var 'aws_secret_access_key='
-var 'db_password='
-var 'ami_users='
-var 'aws_region='
-var 'subnet_id='
ami.pkr.hcl
```4. Create AMI
```console
$ packer build -var 'aws_access_key_id='
-var 'aws_secret_access_key='
-var 'db_password='
-var 'ami_users='
-var 'aws_region='
-var 'subnet_id='
ami.pkr.hcl
```