Skip to content

Instantly share code, notes, and snippets.

@eric-do
eric-do / docker-mongo.md
Last active January 25, 2023 19:26
Guide for installing Mongo via Docker

Installing Mongo 4.4 via Docker

TLDR: just looking for the code? Skip to the end.

๐Ÿณ Installing Docker

Download Docker Desktop here.

๐Ÿ“€ Pulling and containerizing a mongo server instance

Make sure Docker is running.

@eric-do
eric-do / docker-mysql.md
Last active February 26, 2025 07:14
Guide for installing running MySQL 8.0 using Docker.

Installing MySQL 8.0 via Docker

TLDR: just looking for the code? Skip to the end.

๐Ÿ“– Summary

This document guides you through the setup of Docker and MySQL.

Why would you want to do it this way?

  • Isolated environment. Need to upgrade from version 5.7 to 8.0 and are just developing locally? Previous configurations breaking your installation? Toss your old image and get a new one.
  • Preparation for real world development. Local databases are typically for coding and testing. Developers don't normally run a live production database from their own machine. We just need a database we can quickly test and develop on. Docker is perfect for that.
@eric-do
eric-do / node-exports-styles.js
Created April 30, 2019 17:42 — forked from kimmobrunfeldt/node-exports-styles.js
A few Node module export styles. 1 seems to be the most used and I prefer it
// Style 1
// Export all manually
// Good: Calling functions inside the module is convenient
// Bad: module.exports becomes verbose and it's tedious to add new functions
function a() {
b()
}