s3-sync-action
serve-static
s3-sync-action | serve-static | |
---|---|---|
7 | 2 | |
1,006 | 432 | |
- | 0.2% | |
0.0 | 9.1 | |
about 1 month ago | 2 days ago | |
Shell | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
s3-sync-action
-
Bringing together Hungarian technology conferences
I cannot ignore the fact that I am an AWS Community Builder, so it was a no-brainer that I would implement this on AWS. Registering a domain and setting it up on Route 53 was the first step. Then I looked at the possibilities of hosting. The site is written in Jeklly and each page is generated separately. Using GitHub Actions, I can regenerate the static pages every time there is a new commit. Hosting a static website on AWS isnβt rocket science. S3 static file hosting is a cheap and easy way. I just needed to find a way how to publish my files to S3. Jake Jarvis created a GitHub Action that can sync your files to S3. All you have to do is to create the appropriate IAM permissions and your files will be pushed to the S3 bucket of your choice. From there, AWS will do the rest. I have created a CloudFront distribution to get HTTPS and fast access from Hungary. Currently there is no AWS region in Hungary, but there is an edge location in Budapest, so serving the site from there gives fast access to Hungarian users. π₯π₯π₯
- Cheap way to host a Javascript project. (e.g. Node APIs & React Apps)
-
request critical feedback on the yaml for my first github action, please
I mean.. I would probably just have used https://github.com/marketplace/actions/s3-sync :)
-
Nestjs + Nextjs Monorepo with AWS
I would consider sending the UI build files to S3 using either cloud formation or Github Actions. For the backend, sounds like a docker container could serve you well and cloudformation or Github Actions can handle this.
-
CI/CD failing for permission... anybody can help me?
The action in GitHub is the following (as per instructions here : https://github.com/jakejarvis/s3-sync-action )
-
How do you implement your Front-end build & deploy process?
You can deploy your frontend build to S3, then point your domain to these files, for example with CloudFlare or Route53. We use a Github action to publish these for each deploy. This makes the frontend and backend effectively two different services.
-
15. CI/CD (Front end)
Git hub actions pushes the source code to my S3 bucket the moment they are pushed to my git repository using a git actions. Git action: https://github.com/jakejarvis/s3-sync-action
serve-static
-
Serving static files with Node.JS
Take a look at Nest.js web server. When the file serving option is turned on, it not only slows down your app because filesystem checks for every request but also using synchronous fs.stat to check if the file exists.
-
How do you implement your Front-end build & deploy process?
Alternatively, you can serve your frontend from the backend using serve-static. Note that this doesn't actually require that your frontend source code is nested in the backend source code directory. You are just serving the build files, not the source, so only those build files need to end up in the `nest` directory. Our dev script just peaks a level up (IE `../frontend`), while our deploy GitHub action builds the frontend and moves the files into the backend before building `nest`.
What are some alternatives?
git-repo-sync - Git Repo Sync enables you to synchronize code to other code management platforms, such as GitLab, Gitee, etc.
fastify-static - Plugin for serving static files as fast as possible
build-hugo - A GitHub Action to build Hugo site.
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript π
git-repo-sync - Auto synchronization of remote Git repositories. Auto conflict solving. Network fail resilience. Linux & Windows support. And more.
sirv - An optimized middleware & CLI application for serving static files~!
terraform-multienv - A template for maintaining a multiple environments infrastructure with Terraform. This template includes a CI/CD process, that applies the infrastructure in an AWS account.
typescript-starter - Nest framework TypeScript starter :coffee:
terraform-security-scan - Run a security scan on your terraform with the very nice https://github.com/aquasecurity/tfsec
amplication - π₯π₯π₯ Open-source backend development platform. Build production-ready services without wasting time on repetitive coding.
jekyll-action - A GitHub Action to publish Jekyll based content as a GitHub Pages site
ditsmod - Ditsmod is a Node.js web framework, named DI + TS + Mod to emphasize its important components: it has Dependency Injection, written in TypeScript, and designed for good Modularity.