1.2.1 • Published 6 years ago
@jeremiergz/mongodzilla v1.2.1
MongodZilla
Install MongodZilla (safe, at this point...)
npm:
npm install --global @jeremiergz/mongodzilla
Docker:
docker pull jeremiergz/mongodzilla
Wake MongodZilla up (ok, you should really start to worry!)
If installed using npm:
mongodzilla
Or use the alias:
mgz
If installed using Docker:
docker run [-d] -p 20491:20491 jeremiergz/mongodzilla
Build MongodZilla up (don't worry, it's safe, unless you're living in Tokyo...)
Grab the project from GitHub:
Using HTTPS:
git clone https://github.com/jeremiergz/mongodzilla.git
Using SSH:
git clone git@github.com:jeremiergz/mongodzilla.git
Cd into the directory and run:
npm install
npm run build
npm
Start the project with:
npm start
Or create a link using npm and start the project:
npm link
mongodzilla
Docker Compose
A docker-compose.yml is present and can be used as easily as typing:
docker-compose up [-d]
It will create and start a MongoDB database container and MongodZilla container as well.
Project configuration
There are 2 ways to start this project. Either by using Node.js or through Docker Compose.
To run with Node.js
Prerequisites
- Running MongoDB database (either using shell or Docker)
- Set MONGODB_HOST env variable if necessary (default: 127.0.0.1)
- Set MONGODB_PORT env variable if necessary (default: 27017)
To run with Docker Compose
Prerequisites
- Having Docker & Docker Compose installed
- Set MONGODB_HOST env variable with the MongoDB container hostname
- Set MONGODB_PORT env variable with the MongoDB container port number
Eureka client (extra bonus)
You can link MongodZilla to an existing Eureka Server by setting a few environment variables.
To activate the client and configure the server reaching endpoint, set the following variables:
- EUREKA_CLIENT=true (default: false)
- EUREKA_SERVER_HOST=\<server hostname> (default: 127.0.0.1)
- EUREKA_SERVER_PORT=\<server port number> (default: 8761)
Authors
- Jeremie Rodriguez [contact@jeremierodriguez.com](mailto:contact@jeremierodriguez.com) - Main developer
License
This project is licensed under the MIT License - see the LICENSE file for details.