Git Product home page Git Product logo

rupomsoft / mern-x Goto Github PK

View Code? Open in Web Editor NEW
108.0 2.0 11.0 346 KB

MERN-X is a comprehensive full-stack framework designed to streamline the development of web applications using the popular MERN stack: MongoDB, Express.js, React, and Node.js. Built with simplicity and scalability in mind, MERN-X empowers developers to create robust and efficient applications from end to end

Home Page: https://mernx.com

License: MIT License

JavaScript 88.76% HTML 4.14% CSS 7.11%
express mern mern-boilerplate mern-project mern-stack mern-stack-app mongodb react mern-x

mern-x's Introduction

Installation:

To create a new project using MERN-X, simply run the following command:

npx mern-x@latest
// For yarn 
yarn exec mern-x

How to run project

npx run mern   // Project Back End Will Run @3000
npx run dev    // Complete Project Will Run @3001

// For yarn 
yarn run mern
yarn run dev

How create Model

npm run create:model YourModelName
// For yarn 
yarn run create:model YourModelName

How create Controller

npm run create:controller YourControllerName
// For yarn 
yarn run create:controller YourControllerName

How create Middleware

npm run create:middleware YourMiddlewareName
// For yarn 
yarn run create:middleware YourMiddlewareName

How create Page

npm run create:page YourPageName
// For yarn 
yarn run create:page YourPageName

How create Component

npm run create:component YourComponentName
// For yarn 
yarn run create:component YourComponentName

How create Loader

npm run create:loader YourLoaderName
// For yarn 
yarn run create:loader YourLoaderName

How create Layout

npm run create:layout YourLayoutName
// For yarn
yarn run create:layout YourLayoutName

Project Structure

mern-x/
│
├── app/                                      
│   ├── config/                                 
│   │   ├── cli.js
│   │   ├── config.js
│   │
│   ├── controllers
│   │   ├── todoController.js
│   │
│   ├── middlewares
│   │   ├── authMiddleware.js
│   │
│   ├── models
│   │   ├── todosModel.js
│   │
│   ├── storage/
│   │
│   ├── utility/
│   │   ├── emailUtility.js
│   │   ├── tokenUtility.js
│   │   ├── validationUtility.js
│   │
│   ├── dist/
│   │
│   ├── node_modules/
│   │
│   ├── public/
│   │
│   ├── routes/
│   │   ├── api.js
│   │   ├── web.jsx
│   │
│   ├── views/
│   │   ├── assets/
│   │   │   ├── css/
│   │   │   │    ├── style.js
│   │     
│   │   ├── components/
│   │   │   ├── CreateForm.jsx
│   │   │   ├── List.jsx 
│   │   
│   │   ├── layout/
│   │   │   ├── AppLayout.jsx
│   │   │
│   │   
│   │   ├── loader/
│   │   │   ├── ListLoader.jsx
│   │   │ 
│   │   ├── pages/
│   │   │   ├── CreatePage.jsx
│   │   │   ├── ListPage.jsx 
│   │     
│   │   ├── main.jsx  
│   │
│   │
│   ├── .gitattributes
│   ├── .gitignore
│   ├── app.js
│   ├── index.html
│   ├── LICENSE
│   ├── package.json
│   ├── package-lock.json
│   ├── postcss.config.js
│   ├── README.md
│   ├── tailwind.config.js
│   ├── vite.config.js
  • app: This directory contains the main application code.
    • config: Configuration files for the application.
    • controllers: Controllers for handling business logic.
    • Middleware functions for handling requests.
    • models: Database models.
    • storage: Directory for storing files (if applicable).
    • utility: Utility functions.
  • dist: Distribution files (compiled code).
  • node_modules: Node.js modules installed via npm.
  • public: Public assets.
  • routes: Route definitions.
  • views: React components and views.
    • assets: Static assets like CSS files.
    • components: Reusable React components.
    • layout: Layout components.
    • loader: Loading components.
    • pages: Individual pages/components.
  • .gitattributes: Git attributes file.
  • .gitignore: Git ignore file.
  • app.js: Entry point of the Node.js application.
  • index.html: Main HTML file.
  • LICENSE: License file.
  • package.json: Project metadata and dependencies.
  • package-lock.json: Dependency lock file.
  • postcss.config.js: PostCSS configuration file.
  • README.md: Project documentation. -tailwind.config.js: Tailwind CSS configuration file. -vite.config.js: Vite configuration file.

mern-x's People

Contributors

captain-binary avatar rupomsoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mern-x's Issues

Auth middleware

hi,

I see there is auth middleware with jsonwebtoken. Is it possible to add a sample login form to login the user to create item(s) or similar when the user is logged in and redirect to login page if not.

--
Thanks & regards,
Ragavendra

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.