https://github.com/xsalazar/portfolio-backend
📸 This repository contains the infrastructure code to support the website https://portfolio.xsalazar.com for quick and reliable image hosting.
https://github.com/xsalazar/portfolio-backend
aws cloudfront portfolio terraform
Last synced: 8 months ago
JSON representation
📸 This repository contains the infrastructure code to support the website https://portfolio.xsalazar.com for quick and reliable image hosting.
- Host: GitHub
- URL: https://github.com/xsalazar/portfolio-backend
- Owner: xsalazar
- Created: 2023-01-21T19:47:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T06:11:49.000Z (over 1 year ago)
- Last Synced: 2024-05-01T16:46:48.655Z (over 1 year ago)
- Topics: aws, cloudfront, portfolio, terraform
- Language: HCL
- Homepage: https://portfolio.xsalazar.com
- Size: 5.01 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# 📸 Photography Portfolio Backend
This repository holds both the Terraform infrastructure code as well as the simple Javascript application that runs inside the AWS Lambda function.
This application is a basic service that returns image metadata to the frontend application. All requests are routed through AWS CloudFront for CDN support and serves images directly from AWS S3.
This backend application is used to support the website [https://portfolio.xsalazar.com](https://portfolio.xsalazar.com).
## Getting Started
This repository leverages [VSCode's devcontainer](https://code.visualstudio.com/docs/remote/containers) feature to ensure all necessary dependencies are available inside the container for development.
### Application
The application code for this repository is contained in the [`./app`](./app) directory.
To get started:
```bash
cd app/ && npm init
```All application deployments are managed via GitHub Actions and the [`./.github/workflows/deploy_application.yml`](./.github/workflows/deploy_application.yml) workflow.
### Infrastructure
The infrastructure code for this repository is contained in the [`./terraform`](./terraform) directory. The required Terraform version is `1.10.2`. The AWS artifacts managed in this repository are illustrated below.
To get started:
```bash
cd terraform/ && terraform init
```All infrastructure deployments are managed via GitHub Actions and the [`./.github/workflows/deploy_infrastructure.yml`](./.github/workflows/deploy_infrastructure.yml) workflow.
