Gathering detailed insights and metrics for @mahjongg/mern-mvc
Gathering detailed insights and metrics for @mahjongg/mern-mvc
Gathering detailed insights and metrics for @mahjongg/mern-mvc
Gathering detailed insights and metrics for @mahjongg/mern-mvc
npm install @mahjongg/mern-mvc
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
7 Commits
2 Branches
1 Contributors
Updated on Apr 22, 2018
Latest Version
1.4.0
Package Id
@mahjongg/mern-mvc@1.4.0
Unpacked Size
99.94 kB
Size
26.67 kB
File Count
28
NPM Version
5.6.0
Node Version
8.11.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This package relies on Yarn, so be sure that you have it installed globally.
npm install yarn -g
Next, install this package,
npm install -g @mahjongg/mern-mvc
Navigate to the desired location for your new project and run:
mern-mvc create <project-name>
mern-mvc will create a new folder for you with the name specified. This name will also be used in your package.json, so it must follow some naming conventions as required by npm. Only lowercase letters, numbers, or the "-" symbol are allowed.
mern-mvc creates an application that uses the following on the backend:
1"dependencies": { 2 "express", 3 "express-session", 4 "mongoose", 5 "passport", 6 "passport-local", 7 "passport-local-mongoose" 8 }, 9 "devDependencies": { 10 "concurrently", 11 "jest", 12 "nodemon" 13 }
All packages are installed at their most recent versions. It includes fully set-up user authentication, with the option for more fields to be added with ease.
You can opt out of passport set-up by using the flag --no-passport (aliased as -x).
A react application will be created using create-react-app, in a folder called 'client'. The dev dependencies concurrently and nodemon are used to allow both the react server and api server to be run in parallel when using yarn start
. The react-app utilizes react-router-dom for routing, and axios for AJAX calls.
The React app has some very basic authentication forms included, but you are free to implement authentication however you like.
mern-mvc now includes a command for building a simple route file!
mern-mvc route <name> --options
The <name> parameter is used to determine the folder name to put the new route file in. You will still need to include that file somewhere and attach it to a specific path.
Options include:
--no-passport (-p): This will leave passport out of the function argument on your new route file.
--no-functionBased (-f): This will create your route file so that it exports the Router object directly, rather than exporting a function that returns the Router.
--routes (-r): This allows you to include a list of paths you want in your route. For simplicity, they are all created as GET routes, although it is simple enough to change them to some other method. The value provided to the --routes option should be include in double quotes and separated by a comma and a space. For example:
mern-mvc route users --routes "signIn, signUp, signOut"
Will produce this file: users/index.js
1module.exports = function(passport) { 2 const router = require('express').Router(); 3 4 router.get("/signIn",function(req,res){ 5 6 }); 7 8 router.get("/signUp",function(req,res){ 9 10 }); 11 12 router.get("/signOut",function(req,res){ 13 14 }); 15 16 return router; 17};
other options to add to create command...
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More