luxgen
v1.0.22
Published
Main project for template generating
Downloads
7
Readme
#Luxgen
Luxgen is a MEAN (mongdb, express, angular and ngnix) stack dockernized micro service. The library creates the template project for you.
Install
Global install
$ npm install luxgen -g
New Project
Create a new project by the command:
$ lux new [project-name]
This will generate the base project. Within the project just run npm run start. It will initate the docker-compose with a clean environment.
Generate model with endpoints
The Model Generator is only available if you are in the root of your project. use the command:
$ lux generate [model-name]
This command will create the next files when you are in the root of the project:
- [model-name].data-provider.js
- [model-name].service.js
- [model-name].model.js
- [model-name].mutation.js
- [model-name].query.js
- [model-name].type.js
These files are auto indexed by a the schema stitcher