
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
create-graphql-express
Advanced tools
Create GraphQL APIs with no build configuration.
Create GraphQL API works on macOS, Windows, and Linux.
If something doesn’t work, please file an issue.
If you have questions or need help, please ask in our Discord community.
npx create-graphql-express my-api
cd my-api
npm install
npm run dev
If you've previously installed create-graphql-express
globally via npm install -g create-graphql-express
, we recommend you uninstall the package using npm uninstall -g create-graphql-express
to ensure that npx always uses the latest version.
(npx comes with npm 5.2+ and higher, see instructions for older npm versions)
Then open http://localhost:3000/graphql to see GraphpiQL.
When you’re ready to deploy to production, create a minified bundle with npm run build
.
You don’t need to install or configure tools like Typescript or Eslint.
They are preconfigured and hidden so that you can focus on the code.
Create a project, and you’re good to go.
You’ll need to have Node 10.16.0 or later version on your local development machine (but it’s not required on the server). You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.
To create a new app, you may choose one of the following methods:
npx create-graphql-express my-api
(npx is a package runner tool that comes with npm 5.2+ and higher, see instructions for older npm versions)
my-api
├── jest.config.js
├── package.json
├── src
| ├── errors.ts
| ├── generated
| | ├── schema.ts
| | └── types.d.ts
| ├── graphql
| | ├── calculator
| | | ├── calculateMutation.ts
| | | └── calculator.graphql
| | ├── generated
| | | ├── root.graphql
| | | └── rootResolver.ts
| | ├── _directives
| | └── _scalars
| ├── repositories
| | └── repositories.d.ts
| ├── services
| | └── services.d.ts
| └── utils
| └── utils.d.ts
├── tests
| ├── calculator.test.ts
| └── config
| ├── global.d.ts
| ├── jest.env.ts
| ├── jest.global.ts
| └── jest.setup.ts
└── tsconfig.json
No configuration or complicated folder structures, only the files you need to build your app.
Once the installation is done, you can open your project folder:
cd my-api
Inside the newly created project, you can run some built-in commands:
npm run dev
or yarn dev
Runs the app in development mode.
Open http://localhost:3000/graphql to view it in the browser.
The API will automatically generate types from the graphql schema and reload if you make changes to the code.
You will see the build errors and lint warnings in the console.
npm test
or yarn test
Runs the functional tests.
npm run build
or yarn build
Builds the app for production to the build
folder.
Your app is ready to be deployed.
You can find detailed instructions on using Create GraphQL API and many tips in its documentation.
Please refer to the User Guide for this and other information.
One Dependency: There is only one build dependency. It uses schemaglue, schema-s2s, ESLint, and other amazing projects, but provides a cohesive curated experience on top of them.
No Configuration Required: You don't need to configure anything. A reasonably good configuration of both development and production builds is handled for you so you can focus on writing code.
TODO: No Lock-In: You can “eject” to a custom setup at any time. Run a single command, and all the configuration and build dependencies will be moved directly into your project, so you can pick up right where you left off.
Your environment will have everything you need to build a GraphQL API:
The tradeoff is that these tools are preconfigured to work in a specific way. If your project needs more customization, you can(cannot yet) "eject" and customize it, but then you will need to maintain this configuration.
We'd love to have your helping hand on create-graphql-api
! See CONTRIBUTING.md for more information on what we're looking for and how to get started.
We are grateful to the authors of existing related projects for their ideas and collaboration:
Create GraphQL Express is open source software licensed as MIT.
FAQs
Set up a GraphQL API by running one command.
The npm package create-graphql-express receives a total of 19 weekly downloads. As such, create-graphql-express popularity was classified as not popular.
We found that create-graphql-express 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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.