Garden Center API - Mongo Database
341
This project is meant to be used with the Garden Center API example project. The Dockerfile in this project creates a modified MongoDB Database with sample data for the Garden Center API.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
$ git clone [email protected]:CatalystTraining/garden_center_db.git
Make sure that you have Docker installed on your local machine. You will need Docker in order to run the sample database image.
The following sections outline the use
$ docker build -t <docker username>/gcdb .
$ docker run -d -p 27017:27017 --name gcdb <docker username>/gcdb
You can use MongoDB Compass, RoboMongo, or the Terminal to connect to the running MongoDB instance. All collections are located in the 'gcdb' database.
In a terminal window:
$ docker exec -it gcdb mongo - will connect to the running container and start the mongo shell.
...
> show databases
admin
gcdb
local
> type your commands here...
Add additional notes about how to deploy this on a live system
We use SemVer for versioning. For the versions available, see the tags on this repository.
Content type
Image
Digest
Size
143.8 MB
Last updated
over 9 years ago
docker pull catalystdevlabs/gcapi-mongodb