Saturday, October 5, 2019

ORM that uses Keyword 'await'


Waterline is a next-generation storage and retrieval engine, and the default ORM used in the Sails framework ( I prefer using hapi ) 
It provides a uniform API for accessing stuff from different kinds of databases and protocols. That means you write the same code to get and store things like users, whether they live in MySQL, MongoDB, neDB, or Postgres.
Waterline strives to inherit the best parts of ORMs like ActiveRecord, Hibernate, and Mongoose, but with a fresh perspective and emphasis on modularity, testability, and consistency across adapters.

https://github.com/balderdashy/waterline

Thursday, September 19, 2019

Forever and Upstart modules for Node.js

In the advanced stages of your application development (usually leading to deployment into production environment), you might want to use the forever (https://npmjs.org/package/forever) module and 

There are two ways to use forever: through the command line or by using forever in your code. Note: If you are using forever programatically you should install forever-monitor.

forever start app.js
Installation

  $ [sudo] npm install forever -g

 $ cd /path/to/your/project
  $ [sudo] npm install forever-monitor

Thursday, August 1, 2019

Use an external server uptime monitor

If you rely on an uptime monitor on your server, and your server crashes, it may not report that it has crashed. Using an external server uptime monitor however keeps you in the loop.

Best External Server Uptime Monitors


Change NODE_ENV=production on windows

Powershell use:

$env:NODE_ENV="production"

CMD use:
set NODE_ENV=production 

or for any environment use, make sure it's the npm package below and NOT the recent malware crossenv: e.g. 'typo squatting'
npm install --save -dev cross-env


Testing email campaigns on multiple devices

If you need to test emails and how they look on multiple devices, I recommend using Litmus. 

You should test how emails look on different devices because email html still uses tables, and webmail services strip out doctype, body, and head tags including inline css, meaning your fancy emails may look awful on some devices. Yes,you can resort to sending plain text emails,  but it'll definitely lack the panache you were seeking.




Free online UML websites

Best free UML online

Universal Modelling Language create plans and track the development cycle and can aid QA.
Both of these are free, and have all the features you want for a rich UML interface.

Umletino
Draw

Best paid UML 
Has github integration, and the price seems reasonable.  It's used by Google, Oracle, Cisco, Amazon etc

GenMyModel



Different approach
I personally, like repurposing 'mindmaps' just because they keep the plan simpler and it's fine if I'm doing something on my own without classes or rich details to keep track of.

https://app.mindmup.com
http://mindmapfree.com



Node.js email SMTP server

Haraka is an open source SMTP server written in Node.js which provides extremely high performance coupled with a flexible plugin system allowing Javascript programmers full access to change the behaviour of the server. It is used heavily in some high traffic sites inlcuding Craigslist that send 20million emails a day.