Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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
The npm package express-generator-node-typescript-apollo-graphql-mongo-cli receives a total of 0 weekly downloads. As such, express-generator-node-typescript-apollo-graphql-mongo-cli popularity was classified as not popular.
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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.