From 1b16c4844471ba2ae4520928362d25ab89cc7aad Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 16 Jan 2018 12:59:49 +0530 Subject: [PATCH] app.md --- docs/app.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docs/app.md b/docs/app.md index f54253f8..9b487b0f 100644 --- a/docs/app.md +++ b/docs/app.md @@ -1,6 +1,6 @@ # Creating a new App -### Install Frappe.js +## Install Frappe.js ``` yarn add frappejs @@ -115,4 +115,25 @@ client.start({ frappe.router.default = '/list/todo'; 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 ``` \ No newline at end of file