https://github.com/testcontainers/tc-guide-getting-started-with-testcontainers-for-nodejs
https://github.com/testcontainers/tc-guide-getting-started-with-testcontainers-for-nodejs
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/testcontainers/tc-guide-getting-started-with-testcontainers-for-nodejs
- Owner: testcontainers
- License: mit
- Created: 2023-06-06T13:09:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-04T16:49:11.000Z (about 1 year ago)
- Last Synced: 2025-08-21T12:44:58.979Z (6 months ago)
- Language: JavaScript
- Size: 92.8 KB
- Stars: 7
- Watchers: 6
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Getting started with Testcontainers for NodeJS
This is sample code for [Getting started with Testcontainers for NodeJS](https://testcontainers.com/guides/getting-started-with-testcontainers-for-nodejs) Guide.
## 1. Setup Environment
Make sure you have NodeJS and a [compatible container runtime](https://node.testcontainers.org/supported-container-runtimes/) installed.
For example:
```shell
$ node -v
v18.15.0
$ docker version
...
Server: Docker Desktop 4.12.0 (85629)
Engine:
Version: 20.10.17
API version: 1.41 (minimum version 1.12)
Go version: go1.17.11
...
```
## 2. Setup Project
* Clone the repository
```shell
git clone https://github.com/testcontainers/tc-guide-getting-started-with-testcontainers-for-nodejs.git
cd tc-guide-getting-started-with-testcontainers-for-nodejs/src
npm install
```
* Open the **tc-guide-getting-started-with-testcontainers-for-nodejs** project in your favorite IDE.
## 3. Run Tests
```shell
$ npm test
```
The tests should pass.