Skip to content
tsmx

tsmx

pragmatic IT

  • start
  • npm-packages

Development

Connecting from a Docker container to a local MongoDB

17. March 202214. January 2022 by tsmx-dev

A quick guide demonstrating how to connect to a local MongoDB instance from a Docker container.

Read more

Categories Development Tags Docker, MongoDB, networking

Creating a time series sample CSV file with a bash script

1. December 202126. November 2021 by tsmx-dev

Demonstrating a pragmatic way for generating time series sample data in CSV files with a bash script. Useful for Proof-of-Concepts, unit and performance testing and many other scenarios.

Read more

Categories Development Tags bash, sample data, scripting, testing, time series

npm major package upgrades with backward patch support

20. October 20213. October 2021 by tsmx-dev

A short checklist for publishing new major versions of your packages in the npm registry including support for patching older versions.

Read more

Categories Development, NodeJS Tags major-version, NodeJS, npm, package, patch, publish, update

JavaScript Map: sorted for-loop with a custom iterator

20. August 20211. June 2021 by tsmx-dev

An elegant way of how to do a sorted iteration over all entries of a JavaScript Map with a for-loop using a custom iterator implemented with Symbol.iterator, function* and yield*.

Read more

Categories Development, NodeJS Tags for-loop, function*, iterate, JavaScript, Map, NodeJS, sort, Symbol.iterator, yield, yield*

nginx as development proxy to avoid CORS errors

24. September 202125. March 2021 by tsmx-dev

A simple setup for using nginx to avoid CORS errors during local development without the need of code changes.

Read more

Categories Development Tags client-side, CORS, cross-origin, error, nginx, proxy, web-development

Recent Posts

  • Moving MongoDB from local installation to Docker – Fedora migration guide
  • Express: passing dates in an URL using route parameters including regex validation
  • Query min/max values with additional non-grouped fields in MongoDB
  • MongoDB: add/update fields referencing other existing fields using aggregation pipelines
  • Connecting from a Docker container to a local MongoDB

Categories

  • Cloud (1)
  • Development (5)
  • GCP (1)
  • MongoDB (3)
  • NodeJS (12)

Archives

  • November 2022
  • June 2022
  • May 2022
  • April 2022
  • January 2022
  • November 2021
  • October 2021
  • September 2021
  • June 2021
  • March 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020

Links

Privacy Policy | Imprint

© 2023 tsmx • Built with GeneratePress