Magic Query Builder is a full-stack application built using the MERN stack (MongoDB, Express, React, and Node.js). It provides a solid foundation for building and managing queries with a user-friendly interface.
For development, you will need Node.js, npm, and Yarn installed in your environment.
-
Download and install Node.js from the official Node.js website. Ensure that
git
is available in your PATH. -
Install Node.js and npm using apt:
$ sudo apt install nodejs $ sudo apt install npm
-
Follow the instructions on the official Node.js website and official NPM website for installation.
Verify the installation:
$ node --version v14.17.0 $ npm --version 6.14.13
If needed, update
npm
:$ npm install npm -g
Install App after Node.js installation:
> npm install
Create a .env
file in the project root and configure the following settings:
MONGO_URI
: MongoDB connection URIJWT_SECRET
: Secret key for JWT token generationPORT
: PORT number for connection
Start the project with:
$ npm start
app.js
: Entry point of the application.
routes/
: Folder containing all route definitions.
models/
: Folder containing all database models.
middleware/
: Folder containing authentication middleware (auth.js
) to check the token of every request.
controllers/
: Folder containing logic for all defined routes.
config/
: Folder containing database configuration (db.js
).
Feel free to explore and modify the project based on your specific requirements. Magic Query Builder simplifies the process of building and managing queries, providing a user-friendly experience across the entire MERN stack.