joeplaa-com / joeplaa-homepage

joeplaa.com website build with Gatsby, MDX and Bootstrap.
MIT License
0 stars 0 forks source link
bootstrap4 gatsby gatsby-site gatsbyjs mdx mdx-gatsby reactjs scss static-site typescript

Readme

Personal website

1.1 Main libraries

1.2 Styling

1.3 Development

2. Development

3. Testing

3.1 ESlint checking

To check for ESlint errors and warnings in your codebase run:

  yarn lint

3.2 Type checking

To check for TypeScript errors and warnings in your codebase run:

  yarn types

3.3 Unit testing

Run all tests run:

  yarn test

3.4 Build test

Build your site to be sure there are no hidden errors left:

  yarn build

4. Deployment

Deployment is pretty straight-forward if you know what to do. But figuring out how to deploy a site to a specific platform is always a hassle. I host a test version on a private server in Nginx. My production site is hosted in AWS CloudFront. These are the basic steps to take.

These steps are probably not enough to get it all running. I will undoubtly forget to mention some crucial steps, so for now this is for those people who know how to work with a shell in Ubuntu and are familiar with the AWS environment.

4.1 Nginx

4.2 AWS

4.2.1 AWS CLI

4.2.2 Deploy Lambda mailer function

4.2.3 Prepare Website deploy

4.2.4 Deploy website