This is a starter app for Express.js.
The src/devApp.js
runs your src/app.js
using Nodemon as a module, starting Ngrok when the app is run, gracefully stopping Ngrok when the app is closed.
src/app.js
is just a standard hello-world/app.js from the Express.js site. You probably just need to start as you normally would, editing src/app.js
as you build your app.
Clone this repository.
git clone https://github.com/lukeocodes/express-nodemon-ngrok-starter.git
Install the dependencies.
npm install
Nodemon, Ngrok and Dotenv are all devDependencies
and only required inside src/devApp.js
, so in production mode none of these libraries which are great for development are installed or required by the app.
Start the app without these modules.
npm start
Start development mode with the Nodemon, Ngrok, and Dotenv modules.
npm run dev
You could use Livereload to refresh your browser window automatically, if you're working on something which has views.
You could use the Nodemon lifecycle events to update API integrations with your Ngrok address whenever your app comes online in development mode.
Please see the license.
Please see the contributing guidance.
Please see the code of conduct.