# express-generator-react-native-typescript-apollo-graphql

> Express Generator CLI for React Native with Typescript and Apollo GraphQL Client

Latest version **1.0.1** (published 2020-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install express-generator-react-native-typescript-apollo-graphql
pnpm add express-generator-react-native-typescript-apollo-graphql
yarn add express-generator-react-native-typescript-apollo-graphql
bun add express-generator-react-native-typescript-apollo-graphql
```

Provides the command `express-generator-rntag`.

## 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.1 |
| Published | 2020-03-17 |
| First published | 2020-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 1.4 MB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | Fatih Turker |
| Maintainers | fatihturker |
| Keywords | Express generator, apollo client, react native, react native elements, reactjs, graphql, node, nodejs, typescript |

## Links

- npm: https://www.npmjs.com/package/express-generator-react-native-typescript-apollo-graphql
- npm.io page: https://npm.io/package/express-generator-react-native-typescript-apollo-graphql

## Dependencies (4)

- [ejs](https://npm.io/package/ejs.md) ^2.6.1
- [yargs](https://npm.io/package/yargs.md) ^12.0.1
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.2
- [inquirer](https://npm.io/package/inquirer.md) ^6.2.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.1 (latest) — 2020-03-17

## README

![BTC](https://img.shields.io/badge/Donate-BTC-red?logo=bitcoin)
**`3B2R9u6dpJyWB4U6iDWC14y9yejnF5hsSN`**
[![Buy me a coffee](https://img.shields.io/badge/Donate-Buy%20me%20a%20coffee-orange?logo=buy-me-a-coffee)](https://www.buymeacoffee.com/RwIpTEd) 
[![Ko-fi](https://img.shields.io/badge/Donate-Ko--fi-blue?logo=ko-fi)](https://ko-fi.com/fatihturker)

# `Express Generator CLI for React Native with Typescript and Apollo GraphQL Client`

This CLI helps to create new implemented front-end demo for React Native with Typescript and Apollo GraphQL Client from a boilerplate.
To have a Full Stack project, or to test created demo, you can setup graphql server with using [Express Generator CLI for Graphql Backend]

## `About the NPM Package`
### Package Installation
```sh
npm install -g express-generator-react-native-typescript-apollo-graphql
```

### Package Usage
Go to the directory on terminal where you want to generate the project.
```sh
$ cd PATH
```
and run the generator command with specifying the project name.
```sh
$ express-generator-rntag --name="PROJECT_NAME"
```

## `Documentation for the Boilerplate`
When you generate the project, you will have;

### Tech Stack

* [Node.js]
* [Typescript]
* [GraphQL Apollo Client]
* [React Native Elements]

### Features

* GraphQL Queries with implementations in Typescript for Demo User Entity
* GraphQL Mutations with implementations in Typescript for Demo User Entity
* CRUD operations in Typescript for Demo User Entity
* Full Ready CRUD Demo User Components: User List Component, Single User Component, User Dialog Component

### Architecture
This boilerplate has common graphql client design architecture. 
**Layers:**
* ***Components*** holds component implementations 
* ***Models*** holds document interfaces and schema models
* ***Mutations*** holds basic mutation scripts to send graphql server; create, update, delete
* ***Queries*** holds basic query scripts to send graphql server; retrieve

### Installation
Install the dependencies and devDependencies:

```sh
$ cd <Project Name>
$ npm install
```

Set configuration parameters on **config/index.ts**:
```sh
GRAPHQL_URL: "{{GRAPHQL API URL}}"
```

And that's all, start the client
```sh
$ react-native run-android
```

## `Documentation for the Generator Project`
### Tech Stack
* [Node.js]
* [Typescript]

### Plugins

**express-generator-rntag** 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 |


### Installation
**express-generator-rntag** requires [Node.js] v10+ to run.

Install the dependencies and devDependencies and start the application.

```sh
$ cd express-generator-react-native-typescript-apollo-graphql
$ npm install
$ npm start
```

To install the CLI globally:
```sh
$ npm run-script build
$ npm install -g .
```

And global usage:
```sh
$ express-generator-rntag --name="PROJECT_NAME"
```

# `Authors`
 * **Fatih Türker**
# `Sponsors`
No sponsors yet! **Will you be the first?**

# `Contributors`
No contributers yet! **Will you be the first?**

# License
----

MIT

[Typescript]: <https://www.typescriptlang.org>
[Node.js]: <http://nodejs.org>
[ts-node]: <https://www.npmjs.com/package/ts-node>
[shx]: <https://www.npmjs.com/package/shx>
[yargs]: <https://www.npmjs.com/package/yargs>
[shelljs]: <https://www.npmjs.com/package/shelljs>
[inquirer]: <https://www.npmjs.com/package/inquirer>
[ejs]: <https://www.npmjs.com/package/ejs>
[GraphQL Apollo Client]: <https://www.apollographql.com/docs/react/>
[React Native Elements]: <https://react-native-elements.github.io/react-native-elements/>
[Express Generator CLI for Graphql Backend]: <https://www.npmjs.com/package/express-generator-node-typescript-apollo-graphql-mongo-cli>

---
_Source: https://npm.io/package/express-generator-react-native-typescript-apollo-graphql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
