Sign inSign up

catalystdevlabs/gcapi-mongodb

By catalystdevlabs

•Updated over 9 years ago

Garden Center API - Mongo Database

Image
0

341

catalystdevlabs/gcapi-mongodb repository overview

build status coverage report

⁠Garden Center API - Sample Database

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.

⁠Getting Started

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.

⁠Using the Docker Image

The following sections outline the use

⁠Building The Docker Image
$ docker build -t <docker username>/gcdb .
⁠Running The Docker Image
$ docker run -d -p 27017:27017 --name gcdb <docker username>/gcdb
⁠Connecting to MongoDB

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...

⁠Deployment

Add additional notes about how to deploy this on a live system

⁠Built With

⁠Versioning

We use SemVer⁠ for versioning. For the versions available, see the tags on this repository⁠.

⁠Authors

Tag summary

Content type

Image

Digest

Size

143.8 MB

Last updated

over 9 years ago

docker pull catalystdevlabs/gcapi-mongodb