{"id":16352820,"url":"https://github.com/mixelpixel/schema-server-and-mongodb-basics","last_synced_at":"2025-11-20T12:30:17.549Z","repository":{"id":106837349,"uuid":"130118604","full_name":"mixelpixel/schema-server-and-MongoDB-basics","owner":"mixelpixel","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-24T18:14:17.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T18:55:31.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mixelpixel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-18T20:31:53.000Z","updated_at":"2018-04-24T18:14:18.000Z","dependencies_parsed_at":"2023-04-13T00:46:32.053Z","dependency_job_id":null,"html_url":"https://github.com/mixelpixel/schema-server-and-MongoDB-basics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixelpixel%2Fschema-server-and-MongoDB-basics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixelpixel%2Fschema-server-and-MongoDB-basics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixelpixel%2Fschema-server-and-MongoDB-basics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixelpixel%2Fschema-server-and-MongoDB-basics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mixelpixel","download_url":"https://codeload.github.com/mixelpixel/schema-server-and-MongoDB-basics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239619465,"owners_count":19669449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T01:27:41.691Z","updated_at":"2025-11-20T12:30:17.475Z","avatar_url":"https://github.com/mixelpixel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A demo of basic schema, MongoDB and server set-up\n- In particular, demonstrating how MongoDB Database and Collections get named and established\n\n# Command Line Mongo\n1. In your console, use `mongod` to start the MongoDB daemon serving up your database\n```console\n$ mongod\n  ...\n  YYY-MM-DDThh:mm:ss.mmm-#### I NETWORK  [initandlisten] waiting for connections on port 27017\n```\n\n2. There will be a lot more in the console report from invoking `mongod`. If the last line does not tell you that the daemon is waiting for connections, you may need to stop any other instances of `mongod` which are active on your computer.\n3. In a separate console, use the `mongo` command to interact with the database through the command line.\n```console\n$  mongo        \u003c---- invoke the MongoDB\n   MongoDB shell version v3.6.3\n   connecting to: mongodb://127.0.0.1:27017\n   MongoDB server version: 3.6.3\n   Server has startup warnings:  \u003c---- ?????\n   ...\n   2018-04-23T10:46:00.525-0400 I CONTROL  [initandlisten]\n```\n\n4. You may see \"warnings\" reported. Take a minute to read these warnings over and investigate what they mean. In general, warnings - unlike errors - won't stop you from working with the program.\n5. Here are examples of some useful `mongo` commands for navigating and investigating your databases, collections and data:\n```console\n\u003e show dbs                  \u003c---- list all the databases\n   admin   0.000GB\n   config  0.000GB\n   local   0.000GB\n   users   0.000GB\n\u003e db                        \u003c---- display which db is active (test is the default)\n   test\n\u003e use users                 \u003c---- use a particular database\n   switched to db users\n\u003e db\n   users                    \u003c---- see?\n\u003e show collections          \u003c---- currently no collections in the users DB\n\u003e db.users.find().pretty()  \u003c---- display contents nicely\n   {\n           \"_id\" : ObjectId(\"5ab457b6103d0e1cb6597d16\"),\n           \"username\" : \"bob\",\n           \"passwordHash\" : \"$2a$11$dsFfbj6ETxWbMtNJLEQEEOZnCKqFjjyFR2BA0gdO/sBvhJMkuFfSy\",\n           \"__v\" : 0\n   }\n\u003e db.dropDatabase()         \u003c---- nuke db out of existence\n   { \"dropped\" : \"users\", \"ok\" : 1 }\n\u003e quit()                    \u003c---- well... this should be fairly obvious?\n$\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixelpixel%2Fschema-server-and-mongodb-basics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmixelpixel%2Fschema-server-and-mongodb-basics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixelpixel%2Fschema-server-and-mongodb-basics/lists"}