Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/desteves/mirror-mirror-on-the-wall
Auto suggestions for a subset of MongoDB Shell commands
https://github.com/desteves/mirror-mirror-on-the-wall
autocomplete-suggestions codemirror-editor codemirror6 mongodb-database
Last synced: 1 day ago
JSON representation
Auto suggestions for a subset of MongoDB Shell commands
- Host: GitHub
- URL: https://github.com/desteves/mirror-mirror-on-the-wall
- Owner: desteves
- License: mit
- Created: 2025-01-24T14:42:08.000Z (2 days ago)
- Default Branch: main
- Last Pushed: 2025-01-24T14:46:19.000Z (2 days ago)
- Last Synced: 2025-01-24T15:32:24.269Z (2 days ago)
- Topics: autocomplete-suggestions, codemirror-editor, codemirror6, mongodb-database
- Language: JavaScript
- Homepage: https://mongomurdermystery.com/walkthrough
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeMirror Autocompletion Example
![alt text](./assets/image.png)
A _sidecar_ project to create a working auto suggestions for a **very limited** subset of [MongoDB Shell](https://www.mongodb.com/docs/mongodb-shell/) commands. It only supports enough commands to solve the [MongoDB Murder Mystery](https://mongomurdermystery.com/walkthrough) game.
It uses [CodeMirror v6.x Autocompletion](https://codemirror.net/examples/autocompletion/) feature, which is also what [MongoDB Compass](https://www.mongodb.com/docs/compass/current/) uses behind the scenes to support the query builder suggestions as well as other parts the tool.
## To Run
- Have a terminal running: `npm start`
- Everytime the code is changed, re-bundle via: `npx webpack --mode development`
- Open/Refresh `http://localhost:3333`
- Type 'd' in the text area to see the initial set of suggestions.
- Enjoy!