mern-forge
v0.0.11
Published
Core generator for our project system.
Downloads
3
Keywords
Readme
mern-forge
Description
A package that generates a MERN stack app based on user input.
Installation
To install the package, use the following command:
Usage
Import the necessary components from the package:
import { ExpressBasic, ExpressBasicData, ReactCRA, ReactVite, data } from 'mern-forge';
ExpressBasic
The ExpressBasic component generates backend files corresponding to the provided data. To use it, pass three arguments:
ExpressBasic('folder-name', data, 'directory-path');
ReactCRA
The ReactCRA component generates a basic React app using Create React App and adds Axios API calls to it. To use it, pass three arguments:
ReactCRA('folder-name', data, 'directory-path');
ReactVite
The ReactVite component generates a basic React app using Vite and adds Axios API calls to it. To use it, pass three arguments:
ReactVite('folder-name', data, 'directory-path');
Additional Information
The package also exports the data object, which can be accessed directly:
import { data } from 'mern-forge';
License
NaN