Skip to content

Commit e4d0054

Browse files
authored
Start entire app using npm start (#26)
Start entire app using `npm start`
2 parents eb77fe8 + 3e68358 commit e4d0054

File tree

4 files changed

+6281
-8816
lines changed

4 files changed

+6281
-8816
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ All functions are compiled with webpack using the Babel Loader, so you can use m
2020

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

23+
### Start both servers concurrently
24+
25+
From inside the project folder, run:
26+
27+
```
28+
yarn start
29+
```
30+
31+
This will run both `yarn start:lambda` and `yarn start:app` at the same time (more information about the commands can be found below).
32+
33+
> 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.
34+
2335
### Start each server individually
2436

2537
**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
4658

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

49-
> 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.
50-
5161
## Typescript
5262

5363
<details>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy