mirror of
https://github.com/frappe/books.git
synced 2024-12-23 03:19:01 +00:00
app.md
This commit is contained in:
parent
9c49809e09
commit
1b16c48444
23
docs/app.md
23
docs/app.md
@ -1,6 +1,6 @@
|
|||||||
# Creating a new App
|
# Creating a new App
|
||||||
|
|
||||||
### Install Frappe.js
|
## Install Frappe.js
|
||||||
|
|
||||||
```
|
```
|
||||||
yarn add frappejs
|
yarn add frappejs
|
||||||
@ -116,3 +116,24 @@ client.start({
|
|||||||
frappe.router.show(window.location.hash);
|
frappe.router.show(window.location.hash);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Start
|
||||||
|
|
||||||
|
To start the app and build webpack simultaneously you can use a `Procfile`
|
||||||
|
|
||||||
|
```yml
|
||||||
|
server: nodemon server.js
|
||||||
|
watch: node_modules/.bin/webpack --watch
|
||||||
|
```
|
||||||
|
|
||||||
|
You can use any procfile handler like `node-foreman` to start the processes.
|
||||||
|
|
||||||
|
```
|
||||||
|
yarn global add node-foreman
|
||||||
|
```
|
||||||
|
|
||||||
|
Then
|
||||||
|
|
||||||
|
```
|
||||||
|
nf start
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user