https://github.com/sc5/aws-serverless-hackathon
SC5's AWS - Serverless hackathon
https://github.com/sc5/aws-serverless-hackathon
Last synced: 13 days ago
JSON representation
SC5's AWS - Serverless hackathon
- Host: GitHub
- URL: https://github.com/sc5/aws-serverless-hackathon
- Owner: SC5
- Created: 2016-02-24T11:31:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-20T11:49:25.000Z (over 9 years ago)
- Last Synced: 2025-01-03T18:39:20.638Z (over 1 year ago)
- Language: HTML
- Size: 30.3 KB
- Stars: 6
- Watchers: 18
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Blog workshop frontend
### What you need
* Node.js and npm: https://nodejs.org/en/
### Installation
* Clone GIT repository
```bash
git clone git@github.com:SC5/aws-serverless-hackathon.git
```
* Install packages
```bash
npm install
```
### Setup
Add API endpoint url to config.ts
### Run it
```bash
npm start
```
### Deploy to S3
To deploy frontend web application to S3 run
```bash
npm run deploy-stack
```
which creates a S3 bucket with website hosting to your default region.
To create bucket to custom region with custom CloudFormation stack name,
use parameter `-r` for region and `-n` for stack name e.g.
```bash
npm run deploy-stack -- -r eu-west-1 -n my-blog-workshop-frontend
```
### Remove from S3
To remove deployed web application from S3 run
```bash
npm run remove-stack
```
If you've defined custom region or stack name, same `-r` and `-n` parameters
should be used when removing application.
### Feedback
mikael.puittinen@sc5.io