
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
express-generator-node-typescript-apollo-graphql-mongo-cli
Advanced tools
Express Generator CLI for Node with Typescript, Apollo GraphQL Server and MongoDB
3B2R9u6dpJyWB4U6iDWC14y9yejnF5hsSN
Express Generator CLI for Node with Typescript, Apollo GraphQL Server and MongoDB with Mongoose
This CLI helps to create new implemented API demo for Node with Typescript, Apollo GraphQL Server and MongoDB with Mongoose from a boilerplate.
About the NPM Package
npm install -g express-generator-node-typescript-apollo-graphql-mongo-cli
Go to the directory on terminal where you want to generate the project.
$ cd PATH
and run the generator command with specifying the project name.
$ express-generator-ntagm --name="PROJECT_NAME"
For more information you can check this article: https://www.linkedin.com/pulse/create-graphql-api-2-minutes-using-node-typescript-apollo-t%C3%BCrker/
Documentation for the Boilerplate
When you generate the project, you will have;
This boilerplate has common graphql api design architecture. Layers:
Install the dependencies and devDependencies:
$ cd <Project Name>
$ npm install
Set environment parameters on .env:
PORT="{{PORT NUMBER WHERE THE APP WILL WORK}}"
MONGO_DB_PATH="{{MONGODB CONNECTION URL STRING}}"
And that's all, start the server
$ npm start
Documentation for the Generator Project
express-generator-ntagm is currently extended with the following plugins. Instructions on how to use them in your own application are linked below.
Plugin | Usage |
---|---|
ejs | to render global parameters like Project Name |
inquirer | to ask questions and parse input |
shelljs | to eliminate your shell script's dependency on Unix |
yargs | to build interactive command line tools |
shx | to wrap around ShellJS Unix commands |
ts-node | to execute TypeScript and REPL for node.js, with source map support |
express-generator-ntagm requires Node.js v10+ to run.
Install the dependencies and devDependencies and start the application.
$ cd express-generator-node-typescript-apollo-graphql-mongo
$ npm install
$ npm start
To install the CLI globally:
$ npm run-script build
$ npm install -g .
And global usage:
$ express-generator-ntagm --name="PROJECT_NAME"
Authors
Sponsors
No sponsors yet! Will you be the first?
Contributors
No contributers yet! Will you be the first?
MIT
FAQs
Express Generator CLI for Node with Typescript, Apollo GraphQL Server and MongoDB
We found that express-generator-node-typescript-apollo-graphql-mongo-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.