Mocha is a unittest framework for Node. In this document, we explain how you can test your javascript code and also your HTTP servers.
Use npm
to install Mocha:
npm install mocha
# build neovim debian package with bundled dependencies | |
# I needed this for Raspberry Pi OS since bookworm default neovim is at 0.7.x currently | |
sudo apt install gperf luajit luarocks libuv1-dev libluajit-5.1-dev libunibilium-dev libmsgpack-dev libtermkey-dev libvterm-dev libutf8proc-dev ninja-build gettext cmake unzip curl build-essential | |
git clone https://github.com/neovim/neovim | |
# working from root dir | |
cd neovim | |
cmake -S cmake.deps -B .deps -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo | |
cmake --build .deps | |
cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo | |
cmake --build build |
--compilers js:./test/support/compiler | |
--require ./test/support/init |
Mocha is a unittest framework for Node. In this document, we explain how you can test your javascript code and also your HTTP servers.
Use npm
to install Mocha:
npm install mocha
SchemaSpy is a neat tool to produce visual diagrams for most relational databases.
Here's how to use it to generate schema relationship diagrams for PostgreSQL databases:
Download the jar file from here (the current version is v6.1.0)
Get the PostgreSQL JDBC driver (unless your installed version of java is really old, use the latest JDBC4 jar file)
Run the command against an existing database. For most databases, the schema (-s option) we are interested in is the public one:
##Setup your server (this would ideally be done with automated provisioning)
npm install -g forever
##Install flightplan
npm install -g flightplan
npm install flightplan --save-dev
This playbook has been removed as it is now very outdated. |