Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/karanwadhwa/webapp

CSYE 6225 Assignments
https://github.com/karanwadhwa/webapp

Last synced: 24 days ago
JSON representation

CSYE 6225 Assignments

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
```