Skip to content

Start entire app using npm start #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -20,6 +20,18 @@ All functions are compiled with webpack using the Babel Loader, so you can use m

Before developing, clone the repository and run `yarn` from the root of the repo to install all dependencies.

### Start both servers concurrently

From inside the project folder, run:

```
yarn start
```

This will run both `yarn start:lambda` and `yarn start:app` at the same time (more information about the commands can be found below).

> Note: You don't need this if you use [`netlify dev`](https://github.com/netlify/netlify-dev-plugin/) as [function builder detection](https://www.netlify.com/blog/2019/04/24/zero-config-yet-technology-agnostic-how-netlify-dev-detectors-work/) does that for you.
### Start each server individually

**Run the functions dev server**
@@ -46,8 +58,6 @@ This will start the normal create-react-app dev server and open your app at `htt

Local in-app requests to the relative path `/.netlify/functions/*` will automatically be proxied to the local functions dev server.

> Note: You can also use [npm-run-all](https://github.com/mysticatea/npm-run-all#readme) to run the functions dev server and app dev server concurrently. Note that you don't need this if you use [`netlify dev`](https://github.com/netlify/netlify-dev-plugin/) as [function builder detection](https://www.netlify.com/blog/2019/04/24/zero-config-yet-technology-agnostic-how-netlify-dev-detectors-work/) does that for you.
## Typescript

<details>
Loading