Git Product home page Git Product logo

mqb-server's Introduction

Magic Query Builder

Overview

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.

Requirements

For development, you will need Node.js, npm, and Yarn installed in your environment.

Node.js

  • Node installation on Windows

    Download and install Node.js from the official Node.js website. Ensure that git is available in your PATH.

  • Node installation on Ubuntu

    Install Node.js and npm using apt:

    $ sudo apt install nodejs
    $ sudo apt install npm
    
  • Other Operating Systems

    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
    

App installation

Install App after Node.js installation:

> npm install

Configure app

Create a .env file in the project root and configure the following settings:

  • MONGO_URI: MongoDB connection URI
  • JWT_SECRET: Secret key for JWT token generation
  • PORT: PORT number for connection

Running the project

Start the project with:

$ npm start

Project Structure

Entry Point

  • app.js: Entry point of the application.

Routes

  • routes/: Folder containing all route definitions.

Models

  • models/: Folder containing all database models.

Middleware

  • middleware/: Folder containing authentication middleware (auth.js) to check the token of every request.

Controllers

  • controllers/: Folder containing logic for all defined routes.

Config

  • 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.

mqb-server's People

Contributors

vanshul22 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.