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
- Host: GitHub
- URL: https://github.com/nideveloper/cdk-angular-website
- Owner: nideveloper
- Created: 2019-12-28T15:06:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T13:21:13.000Z (over 3 years ago)
- Last Synced: 2025-04-09T18:41:28.627Z (about 1 year ago)
- Language: HTML
- Size: 2.07 MB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 42
-
Metadata Files:
- Readme: README.md
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