Tests with jest and mongodb
Includes much more code, other than the actual implementation, creating the extra mocks. It's clear in the complete example that mocks are more lines of code than the actual UserService.
Spinning up mongod in memory for fast tests. If you run tests in parallel this lib helps to spin up dedicated mongodb servers for every test file in MacOS, *nix, Windows or CI environments (in most cases with zero-config).
The final method tries to combine both methods, 1 and 2. It uses an external package MongoDB In-Memory Server for our MongoDB.
Appwrite - The open-source backend cloud platform. Add Auth, Databases, Functions, and Storage to your product and build any application at any scale while using your preferred coding languages and tools.
Define and run multi-container applications with Docker
Here comes Docker and Docker Compose. I am not going to spend much time explaining Docker, but if you want I can write a separate blog about it.
Building a dockerized ETL pipeline for streaming positive tweets
2 projects | dev.to | 4 Feb 2022
Docker - Setup a local JS and Python Development environment
3 projects | dev.to | 2 Dec 2023
New computer? Install THIS first... 💻
2 projects | dev.to | 23 Nov 2023
Database to go! The perfect database for developer
2 projects | dev.to | 8 Nov 2023
The only local MongoDB replica set with Docker Compose guide you'll ever need!
1 project | dev.to | 30 Oct 2023