minhpvtfx00930 / JS_Landing

A Japanese Software Engineers Club's landing page that used in its 11th member recruitment

Home Page:https://ttv.jsclub.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS_Landing

Official JS Club landing webpage use for gen 11 recruitment.

Installation

npm install

Development

npm run dev

Build

npm install
npm run build

Then, you can find the public build files in dist folder. You can serve it with any static server or CDN.

Deployment

Commits pushed to the main branch are automatically deployed to ttv.jsclub.me and jsclub.me by Vercel.

Extra: Active super fast mode during extreme traffic

This has been turned off and can be turned on when needed.

This is a solution for extreme traffic, by deploying to AWS Cloudfront using Github Actions, our page will be served to 200+ edge locations around the world for unbeatable performance.

To enable this, first create a S3 bucket in AWS S3, and make it public.

Note: when create a S3 public bucket, config the Bucket's Permissions > Bucket policy as follows:

{
 "Version": "2008-10-17",
 "Statement": [
  {
   "Sid": "AllowPublicRead",
   "Effect": "Allow",
   "Principal": {
    "AWS": "*"
   },
   "Action": "s3:GetObject",
   "Resource": "arn:aws:s3:::<your-s3-bucket-name>/*"
  }
 ]
}

Then create a Cloudfront distribution with the S3 bucket as the origin.

Finally, you need to add Github Secrets via the Github UI with the following keys:

AWS_ACCESS_KEY_ID=<your_aws_access_key_id here>
AWS_SECRET_ACCESS_KEY=<your_aws_secret_access_key here>
S3_BUCKET=<your_s3_bucket_name here, this is global-unique, e.g. jsclub-landing>
S3_BUCKET_REGION=<your_s3_bucket_region here, e.g. ap-southeast-1>
CLOUDFRONT_DISTRIBUTION_ID=<your_cloudfront_distribution_id here, e.g. E1OYW0HM207TH>

Then point the domain to the Cloudfront distribution (something like duwypkncy9qm9.cloudfront.net), not the S3 bucket.

After these steps, commits pushed to the main branch will be automatically deployed (CI/CD) to ttv.jsclub.me on AWS Cloudfront by Github Actions.

Contributors

About

A Japanese Software Engineers Club's landing page that used in its 11th member recruitment

https://ttv.jsclub.me

License:MIT License


Languages

Language:JavaScript 79.0%Language:CSS 15.1%Language:Shell 3.3%Language:HTML 2.6%