Skip to content
tsmx

tsmx

pragmatic IT

  • start
  • npm-packages

tsmx-dev

Moving MongoDB from local installation to Docker – Fedora migration guide

23. November 2022 by tsmx-dev

Complete guide for moving an existing local MongoDB installation to newer versions of Fedora using Docker. Also useful if you are looking for getting a MongoDB container up & running on Linux with locally hosted data.

Read more

Categories MongoDB Tags Docker, Fedora, Linux, migration, MongoDB, SELinux

Express: passing dates in an URL using route parameters including regex validation

20. October 20226. June 2022 by tsmx-dev

Showing an elegant way on passing dates to your REST API’s and webservices using Express route parameters and regex validation standard features.

Read more

Categories NodeJS Tags Express, JavaScript, NodeJS

Query min/max values with additional non-grouped fields in MongoDB

2. June 202227. May 2022 by tsmx-dev

Practical example demonstrating how to query for min/max values of grouped documents in MongoDB including additional non-grouped field values using $push, $map and $filter aggregation operators.

Read more

Categories MongoDB Tags MongoDB

MongoDB: add/update fields referencing other existing fields using aggregation pipelines

9. April 2022 by tsmx-dev

Short explanation on how to add or update fields in documents referencing the values of other already existing fields by leveraging the aggregation pipeline framework.

Read more

Categories MongoDB Tags JavaScript, MongoDB

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

Full code-coverage with Jest

10. January 20223. January 2022 by tsmx-dev

A guided tour on how to achieve the most complete code-coverage with Jest in your NodeJS projects and an some thoughts on why this is not necessarily the primary target.

Read more

Categories NodeJS Tags Jest, NodeJS, testing

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

Testing process.exit with Jest in NodeJS

27. September 202117. September 2021 by tsmx-dev

Demonstrating a pragmatic way on how to test code paths resulting in process.exit using the Jest test library.

Read more

Categories NodeJS Tags JavaScript, Jest, NodeJS, testing

Commander options hands-on – advanced CLI’s with NodeJS

27. September 202111. September 2021 by tsmx-dev

The Commander package is a great utility for building a CLI with NodeJS. This article provides a comprehensive hands-on for the various option features of Commander.

Read more

Categories NodeJS Tags CLI, Commander, NodeJS, option
Older posts
Page1 Page2 Next →

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
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkPrivacy policy