Code with Hugo: JS & Node.js in Prod logo

Code with Hugo: JS & Node.js in Prod

Subscribe
Archives
March 11, 2019

Fix git "failed to push, updates were rejected" - Code with Hugo - Mar 9th 2019

Hot off the press

Fix git “tip of your current branch is behind its remote counterpart”: explanation of why git rejects pushes and how to fix it under different scenarios and with different techniques.

I'm working on a Nuxt/Express/Postgres full-stack starter kit, you can check it out at github.com/HugoDF/nuxt-express-postgres-starter. The goal is to make a structured full-stack JavaScript starter app using Express, Postgres and Nuxt (Vue.js) 🤷‍♀️.

For those interested in getting HTTPS running locally with Docker Compose, I've created some examples at github.com/HugoDF/docker-compose-local-https. They use Caddy or nginx as reverse proxies in front of the app, and leverage mkcert to generate trusted local certificates.

If you missed it

A guide to Express request and response mocking/stubbing with Jest or sinon.

From AngularJS to Vue.js, CommonJS and Jest

Pass cookies with axios or fetch requests: When sending requests from client-side JavaScript, by default cookies are not passed, here's how to enable them in the axios module and using the fetch API.

From the web

Make Medium Readable Again: a browser extension that gets rid of the annoying Medium banners.

Don't Let the Internet Dupe You, Event Sourcing is Hard: "I'm going to give it to you straight: event sourcing actually comes with drawbacks", it's not a panacea, it doesn't solve everything and it's hard to do right.

How we used delayed replication for disaster recovery with PostgreSQL Another one from the GitLab team, they have a replica that runs 8 hours after their master database... and use it as a disaster recovery mechanism/backup.

Don't miss what's next. Subscribe to Code with Hugo: JS & Node.js in Prod:
Powered by Buttondown, the easiest way to start and grow your newsletter.