1.0.7 • Published 3 years ago

mern-gen v1.0.7

Weekly downloads
80
License
MIT
Repository
github
Last release
3 years ago

MERN-gen

MERN generator is a package that can generate backend files for express api with some templates of frontend react js.

To install this package make sure that you have already initialized your project (npm init).

1 - Install package:

$ npm install mern-gen

2 - Import express api

$ npx create-api

#OR:

$ npx create-template

  • choose express api it's ready to use.
  • Jump to backend folder ($ cd backend) => Now you can generate MRC files (Model/ Route/ Controller)

2 - To generate Model file:

$ npx create-model

=> then type the name of your file.

  • NB: The package will generate controllers, Models and Routes folders if they not exist!.

3 - To generate controller file:

$ npx create-controller

=> then type the name of your file.

4 - To generate Route file:

$ npx create-route

=> then type the name of your file.

5 - To generate all files:

$ npx create-mrc

=> then type the name of your file. You can also install the package globaly:

$ npm i -g mern-gen You will be able to use direct command:

1 - for express api:

$ create-api

2 - for backend files:

$ create-model

$ create-controller

$ create-route

$ create-mrc

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago