- How to run?
- Show more info
- Custom Name
- Test Redis
- Test Elasticsearch
- Test Postgres
- Test Mysql
- Test HTTP(s) Endpoint
- Test S3
- ls-directory
- touch
- Wait before starting the server
- Simulate workload (with Fibonacci)
- Use Docker
$ npm i
$ npm run start
SHOW_IP_INFO=true npm run start
SHOW_ENV=true npm run start
NAME=toto npm run start
$ REDIS_HOST=127.0.0.1 REDIS_PORT=6379 npm run start
$ ES_URL=http://127.0.0.1:6379 npm run start
$ POSTGRES_HOST=127.0.0.1 POSTGRES_PORT=5432 POSTGRES_USER=user POSTGRES_DB=db POSTGRES_PASSWORD=mysecretpassword npm run start
$ MYSQL_HOST=127.0.0.1 MYSQL_PORT=5432 MYSQL_USER=user MYSQL_DB=db MYSQL_PASSWORD=mysecretpassword npm run start
$ HTTP_ENDPOINTS=api=http://127.0.0.1:8080,other_api=https://google.com npm run start
$ S3_BUCKET_NAME=bucketname S3_REGION=eu-west-1 AWS_ACCESS_KEY_ID=<access_key> AWS_SECRET_ACCESS_KEY=<secret_key> npm run start
LS_DIR=/my/path npm run start
PORT=8087 TOUCH=/my/file.txt npm run start
curl http://localhost:8087 # ignore touch and return last access time of file /my/file.txt
curl http://localhost:8087?touch=1 # create and set access time of file /my/file.txt to now
curl http://localhost:8087?touch=2022-09-11T13:46:03.668Z # create and set access time of file /my/file.txt to "2022-09-11T13:46:03.668Z"
Wait 5000ms:
WAIT=5000 npm run start
Once the server is started, call the server with fibonacci
query URL:
PORT=8087 npm run start
curl http://localhost:8087?fibonacci=30
docker run \
-e PORT=8087 \
-e NAME=toto \
-e SHOW_ENV=true \
-p 8087:8087 \
patatra/test-connections-server:latest