Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
saltyshiomix committed Aug 28, 2019
1 parent df7e53f commit c4c3e86
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,21 @@ To list all examples, just type the command below:
$ nextron list
```

### [examples/api-routes](./examples/api-routes)

```bash
# with `nextron`
$ nextron init my-app --example api-routes

# with npx
$ npx create-nextron-app my-app --example api-routes

# with yarn
$ yarn create nextron-app my-app --example api-routes
```

<p align="center"><img src="https://i.imgur.com/TXLXR6J.png"></p>

### [examples/custom-build-options](./examples/custom-build-options)

```bash
Expand Down
10 changes: 9 additions & 1 deletion examples/api-routes/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<p align="center"><img src="https://i.imgur.com/ZWNgF2C.png"></p>
<p align="center"><img src="https://i.imgur.com/TXLXR6J.png"></p>

## Caution When Production Build

It works **only development mode**.

We can't use API routes if the api url is `localhost` (the development server itself) when production!

It is possible to use **only external** API urls with Electron.

## Usage

Expand Down

0 comments on commit c4c3e86

Please sign in to comment.