4 ms·
HTML, css, js, (maybe jquery and font-awesome if I want to get fancy) and all static files dumped in an S3 bucket for as long as I can get away with it, then dj
by skizm 4y ago
HTML, css, js, (maybe jquery and font-awesome if I want to get fancy) and all static files dumped in an S3 bucket for as long as I can get away with it, then django if I need anything more. Not that I think python/django is the "best", but it is what I know and it's got all the batteries included out of the box. I've never made a sufficiently advanced UI that required react/vue/etc. So I still just stick with html/css/jquery on the front end.
Semi-related side note: I do use TS/react in my 9-5, but the more I use it professionally, the more I'm convinced there is no need for it outside of trying to get a job, IMO.
- retinaros 4y agoI wonder why people like s3 buckets. if your website becomes viral it might become expensive
- cj 4y agoIt’s pretty easy and free to slap a CDN like Cloudflare on top of an S3 bucket
- codeonline 4y agoThere is an AWS CDN available that can be placed in front of the s3 bucket. Also allows for custom domain names, TLS, globally distributed for low latency ec. https://aws.amazon.com/cloudfront/ https://aws.amazon.com/cloudfront/
- deleted 4y ago[deleted]
- sumitb 4y agoTrue. For static only deployments, I would use Firebase or CloudFlare or Vercel or Netlify etc. You get automatic CDN and generous free quota.
- MidnightRaver 4y ago> I've never made a sufficiently advanced UI that required react/vue/etc. There is no such UI. Users don't want 'advanced' UI.
- mohitgangrade 4y agoYou should look into Cloudflare Pages. I'm using it for all my sites, and it's completely free. Automatic deploys when you push code to GitHub, serverless functions called workers baked in, and built-in analytics. Not to mention, you get high-speed CDN caching for free.
- TekMol 4y agoVery similar to my approch. One difference: I am in the process of stripping out jQuery from old projects. So I would not use it in new projects anymore. Plain JS is just awesome these days. And it is easier to reason about event listeners you have set yourself than wondering "Where does this mouseover event come from? Maybe its from jQueries hover function? Wouldn't that rather use mouseenter?".
- shpx 4y agoInstead of an S3 bucket you can use GitHub Pages. You push stuff to the upstream git repo and it gets deployed. It’s free (you have to pay for GitHub Pro if you don’t want to make the source code publicly available) and comes with Fastly CDN if I recall correctly. You just have to configure your custom domain.
- smackeyacky 4y agoI use a GitHub action to sync to an s3 bucket, works extremely well. my update.yml: name: Update Website on: push: branches: - production jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - uses: jakejarvis/s3-sync-action@master with: args: env: AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_REGION: 'myregion' SOURCE_DIR: 'mydir'
- Corrado 4y agoJust an FYI. You can now use OIDC to authenticate to AWS. This removes the need for hardcoded IDs and KEYs.
- slenk 4y agoUse GH to push to S3 on commit. Done.
- clusmore 4y agoIn the case of static HTML/JS/CSS, the webserver will make the source publicly available to your browser anyway, so that's not really an issue.