Welcome !
This is a fun website that shows a bit who I am. It's been a while since I've worked on this project, but I'm working on making it more fun. Recently, due to the high cost of cloud, I've transitioned from using AWS CDK, CodeBuild, CodeDeploy, ECS, etc to using GitHub Actions to push to AWS ECR and ECS.
You'll need:
- NodeJS
You'll need:
- Docker
You'll need the following:
- an AWS Account
- Docker installed
@TODO
Run npm run start
to run the app in development mode.
Open http://localhost:3000 to view it in the browser.
First, you'll need to build the app
-- These are variables I'll use -- You can use your own --
% export REPO_NAME="johnedquinn"
% export IMG_NAME="portfolio-website"
% export IMG_TAG="latest"
% export FULL_TAG="${REPO_NAME}/${IMG_NAME}:${IMG_TAG}"
-- Build --
% docker build . -t "${FULL_TAG}"
If you look at the Dockerfile, we run the server on Port 80, so you'll need to map it to some open port.
-- Again, you can specify whichever port you please --
% export OPEN_PORT="8050"
-- Start the Container --
% docker run -p "${OPEN_PORT}:80" -d "${FULL_TAG}"
You can see the Docker logs by:
-- Get Container ID --
% docker ps
-- Print App Output --
% docker logs <container id>
To can access the website, in this instance, at http://localhost:8050.
export NODE_OPTIONS=--openssl-legacy-provider
npm run predeploy
npm run deploy