To build and run this app you just need Node.js LTS installed.
OR
Docker and Docker Compose
- Clone the repository
git clone --depth=1 https://github.com/MarcosSpessatto/basic-query-generator
- Server
Copy .env.template to a new file named .env
Define your environment variables according to your needs
Install dependencies with "npm install"
Run the server with "npm run dev"
npm run dev
npm run watch
npm run build
npm start
docker-compose up
npm run test
npm run watch-test
npm run lint
{{serverUrl}}/query-generator/document-based/generateUpdateStatement
{
"document": {}, // See tests for more information about the payload
"mutation": {}
}
curl -H "Content-type:application/json" \
http://localhost:3000/query-generator/document-based/generateUpdateStatement \
-d '{ "document": {}, "mutation": {} }'
- Better input validation
- Reduce the code complexity for the traverse function
- Support other entrypoints (e.g CLI)
- Support more commands
- Generate queries for other DBMS tools