It's the code that powers coderintros.com. View it, fork it, learn from it, help make it better, or do none of those at all.
No problem! Head on over to our suggestion page. No shame in suggesting yourself, I promise.
- Get the code:
git clone [email protected]:e10jc/coderintros.git
- Start Docker:
./local
- Route a local domain: Add
127.0.0.1 coderintros.dev
to/etc/hosts
- Visit the site @ http://coderintros.dev/
- Visit the backend @ http://coderintros.dev/wp-admin
- Login with
admin
password
- Login with
- Also:
- Download
gcloud-service-account.json
to thewordpress
folder - Install the MobX Dev Tools Chrome extension
- Install the Google Analytics Debugger Chrome extension
- Download
Sign up for an AWS account, then do the following:
- Create an RDS instance.
- Create an Elastic Beanstalk application and environment, specifying all the environment variables from
docker-compose.yml
.- Use the AWS console, or
eb create prod --elb-type application --sample -i t2.micro -k coderintros --platform "multi-container-docker-1.12.6-(generic)" -pr --vpc.id REPLACE_ME --vpc.ec2subnets REPLACE_ME,REPLACE_ME --vpc.elbpublic --vpc.publicip --vpc.elbsubnets REPLACE_ME,REPLACE_ME
- Use the AWS console, or
- In ECS, create repositories named
react
,wordpress
, andvarnish
. - Create an Elastic IP and assign it to your Elastic Beanstalk instance.
- Add the
AmazonEC2FullAccess
role toaws-elasticbeanstalk-ec2-role
so that you can assign the Elastic IP address to your instance.
- Add the
- Create a Code Pipeline project, pulling from Github, running CodeBuild, deploying to Elastic Beanstalk.
- Define
AWS_REGION
,AWS_ACCOUNT_ID
,BUILD_BUCKET
,PURGERS_ACL
, and anything inreact/env-config.js
environment variables in CodeBuild. - Upload
gcloud-service-account.json
to theBUILD_BUCKET
S3 folder - Add the
AmazonEC2ContainerRegistryFullAccess
andAmazonS3ReadOnlyAccess
policies to IAM rolecode-build-coderintros-service-role
.
- Define
- Push to Github and watch the magic happen!
To let you know about some awesome businesses (and so that I don't forget about my accounts there) here are all the services that coderintros.com relies on: