# create-apollo-server

> Bootstrap an instance of Apollo GraphQL server

Latest version **1.0.2** (published 2017-08-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install create-apollo-server
pnpm add create-apollo-server
yarn add create-apollo-server
bun add create-apollo-server
```

Provides the command `create-apollo-server`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-08-10 |
| First published | 2017-08-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Fatos Hoti |
| Maintainers | tosfa |
| Keywords | Apollo, GraphQL |

## Links

- npm: https://www.npmjs.com/package/create-apollo-server
- Repository: https://github.com/tosFa/create-apollo-server
- Homepage: https://github.com/tosFa/create-apollo-server#readme
- Issues: https://github.com/tosFa/create-apollo-server/issues
- npm.io page: https://npm.io/package/create-apollo-server

## Dependencies (8)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [prompt](https://npm.io/package/prompt.md) ^1.0.0
- [semver](https://npm.io/package/semver.md) ^5.3.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^3.0.1
- [prettier](https://npm.io/package/prettier.md) ^1.5.0
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^5.1.0
- [validate-npm-package-name](https://npm.io/package/validate-npm-package-name.md) ^3.0.0

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-08-10

## README

# Create Apollo Server
The idea behind this library is to provide a simple way to bootstrap a new graphQL server instance.

Inspired by by projects like `create-react-app` and `create-react-native-app` this project aims to provide a similar service.
 
Unlike the before mentioned projects `create-apollo-server` doesn't hide the implementation and comes without an `eject` command

After initializing a new instance of a graphQL server all dependencies are visible in the `package.json` file.

All the configuration parameters are visible through a .env file that gets auto-generated and can be changed afterwards.

# Install

`yarn add global create-apollo-server`

# Generate new GQL API instance

`create-apollo-server init [project-name]`

`Follow instructions`

`cd [project-name] && yarn start`

go to `localhost:[port]/[gaphiql path]` and start investigating the generated schema

The resulting schema is the same as the one used in the example here https://github.com/apollographql/frontpage-server 


# Current supported configurations include

- GraphQL API port:  *default* (8080)
- GraphQL API path:  *default* (graphql)
- Graphiql interface path: *default* (graphiql)
- Add dataloader to the list of dependencies:  *default* (true)
- Support GraphQL subscriptions: *default* (true)
- GraphQL subscription server port: *default* (8090) [only if subscriptions support = true]
- Subscription server path: *default* (/) [only if subscriptions support = true]
- Subscriptions engine: *default* (pubsub) [only if subscriptions support = true]

# Contributing

This is project is a living thing and it needs caring, if you wan to contribute, please do by submitting PRs, issues...

# Roadmap / What's next

- Add data source support (mySQL, Postegrsql, REST)
- Add support for koa, hapi, restify...
- Add specs / tests
- Deploy to launchpad
- Typescript / Flow
- Improving the codebase in general
- init-advanced, an init command to generate an instance for users with more advanced needs

---
_Source: https://npm.io/package/create-apollo-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
