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

https://github.com/nideveloper/cdk-angular-website

CDK and Angular packaged together
https://github.com/nideveloper/cdk-angular-website

Last synced: 5 months ago
JSON representation

CDK and Angular packaged together

Awesome Lists containing this project

README

          

# AWS CDK / Angular CLI Starter
This is a starter with AWS CDK and Angular packaged together in a way that you can deploy the starter angular cli application to s3 with no chamges

## How To Use
If you have aws configured locally or you are in cloud9 this is as simple as running two commands (assuming your terminal starts at the README.md level):
- cd website && npm i && npm run build
- cd ../cdk && npm i && npm run build && npm run deploy

## Project Structure

### Angular Starter website (/website)
This can be found in the blog folder. This is just the initial site that is created on ng init.

#### Some Commands
- npm install
- npm run build
- npm run start
- npm run test

### CDK S3 Deploy Infrastructure (/cdk)
This can be found in the cdk folder, it sets up an S3 bucket as a website deploy and uploads your angular website in the website folder.

#### Useful Commands

- npm run build
- cpm run cdk synth - outputs a cloudformation in the console
- npm run deploy - after running build on website folder then you deploy to s3

### buildspec.yml
I included this incase you want to setup a codebuild resource on aws to build/deploy your project automatically