Welcome to the MongoDB Query API and Natural Language Translator! This tool is designed to make it easy for anyone to translate MongoDB Queries into natural language and vice versa.
- Dark mode
- Copy to clipboard
- MongoDB Query API syntax highlighting
- Schema awareness
- Query history
Using the MongoDB Query API to Natural Language Translator is easy. Simply navigate to the tool's website and choose whether you want to translate from natural language to MongoDB Query API or from MongoDB Query API to natural language. Then, type in your query and hit the "translate" button. The tool will generate the corresponding code or text and display it on the screen. You can press the 'reverse' button to give input as Natural Language and get MongoDB Query API queries in response.
- ❓
-
Clone the repository:
git clone https://github.com/codeSTACKr/mongodb-translator.git
-
Install the required packages:
cd mongodb-translator npm install
-
Build the application:
npm run build
-
Input your OPENAI API key in the .env file, you can get your API key here:
OPENAI_API_KEY=$YOUR_API_KEY
-
Start the development server:
npm start
-
Clone the repository:
git clone https://github.com/codeSTACKr/mongodb-translator.git
-
Input your OPENAI API key in the .env.production file, you can get your API key here:
OPENAI_API_KEY=$YOUR_API_KEY
-
Start the development server:
docker-compose up
Once the development server is running, you can access the application by navigating to http://localhost:3000
in your web browser.
Enter a natural language query in the input box and click "Translate" to generate the corresponding MongoDB Query API code. The generated MongoDB Query API code will be displayed in the output box.
Contributions to MongoDB Translator are welcome and encouraged! To contribute, please follow these steps:
- Fork the repository
- Create a new branch
- Make your changes
- Push your changes to your fork
- Submit a pull request
MongoDB Translator is released under the MIT License.