Skip to content

khuston/gardenplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gardenplace

About

At this stage, Gardenplace is a personal exercise and demo masquerading as an app offering social media for gardeners.

Frontend: Development Build and Manual Testing

cd frontend
yarn
yarn run build-dev
cd dist
python3.8 -m http.server

Frontend: Production Build

cd frontend
yarn
yarn run build

Backend: Authentication Service Build

cd backend/authService
go build

Backend: API Build

cd backend/api
yarn
yarn run prestart

Debugging in VS Code (launch.json)

{
    "configurations": [
    
        {
            "name": "Launch API",
            "program": "${workspaceFolder}/backend/api/dist/index.js",
            "request": "launch",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "type": "pwa-node"
        },
        {
            "name": "Attach to Chrome",
            "type": "chrome",
            "request": "attach",
            "port": 9222,
            "url": "127.0.0.1",
            "webRoot": "${workspaceFolder}/frontend"
        },
        {
            "name": "Launch authService",
            "type": "go",
            "request": "launch",
            "mode": "exec",
            "program": "${workspaceFolder}/backend/authService/authService.exe",
        }
    ]
}

AWS Deployment (Manual)

After manually killing the old server processes, adjust the following variables accordingly and create the deployment.

ARTIFACT_S3_BUCKET=codepipeline-us-east-2-478458351072
ARTIFACT_KEY=gardenplace/BuildArtif/wVK9PKg
aws deploy create-deployment --application-name gardenplace --deployment-group-name gardenplace-production --revision "revisionType=S3,s3Location={bucket="$ARTIFACT_S3_BUCKET",key="$ARTIFACT_KEY",bundleType=zip}" --ignore-application-stop-failures

Renew Certificates (must run on ec2 instance hosting server)

certbot renew

Install Certbot and Update Certificate

sudo wget -r --no-parent -A 'epel-release-*.rpm' http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/
sudo rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-*.rpm
sudo yum-config-manager --enable epel*
sudo certbot certonly --standalone

About

Social media for gardeners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published