A command line tool to generate a GraphQL-Express app. It uses npm for installation and can be installed on macOs, Linux and Windows machines.
This CLI tool will generate a GraphQL-Express App to help you start implementing your backend using GraphQL.
Starting a new project requires almost same file structure and configuration everytime. This led me to start this project; making it easy to initialize any new project that needs GraphQL and Express middleware.
This CLI tool uses following libraries to generate and run project files:
graphql express express-graphql dotenv graphql-type-long mongoose
Node.js
- npm
- Make sure to have a MongoDB Database installed on your local system or an online instance.
- Make sure to update the MongoDB URI in the .env file depending on your needs.
- This is a work in progress and 100% has bugs in it.
- Currently only configured for JavaScript, TypeScript coming soon <3.
- Note: Nothing will be added if you choose TypeScript in the CLI.
Install this on your machine as a global dependency using following command:
npm i -g graphql-express-app
$ graphql-express-app
--yes
|-y
: Skip Prompts and initialize default project--git
|-g
: Initialize with Git in the project folder--install
|-i
: Install dependencies in the project folder. (You can also do this later usingnpm install
oryarn install
) By defaultnpm install
will be used.
I have not yet configured TypeScript but will work on it soon and hopefully include it in the next release.
Pull requests are welcomed. For major changes, please open an issue first to discuss what you would like to change.