An open API service indexing awesome lists of open source software.

https://github.com/cirosantilli/nodejs-cheat

MOVING TO https://cirosantilli.com/linux-kernel-module-cheat#node-js See README. Node.js information and cheatsheets.
https://github.com/cirosantilli/nodejs-cheat

Last synced: 3 months ago
JSON representation

MOVING TO https://cirosantilli.com/linux-kernel-module-cheat#node-js See README. Node.js information and cheatsheets.

Awesome Lists containing this project

README

        

= Node.js Cheat
:idprefix:
:idseparator: -
:sectanchors:
:sectlinks:
:sectnumlevels: 6
:sectnums:
:toc: macro
:toclevels: 6
:toc-title:

This repo is in the process of moving to: https://cirosantilli.com/linux-kernel-module-cheat#node-js

The move will be done progressively as examples are needed there, and no new content will be added here.

TODO: move README.md into this file.

toc::[]

== Getting started

Install node and run all automatable tests:

....
# Install node.
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | sh
source ~/.nvm/nvm.sh
nvm install
nvm use

# Install package dependencies.
npm install

# Run automatable tests.
npm run
....

We install the correct version of Node through NVM: https://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version/1115255#1115255

The Node version is given by our link:.nvmrc[].

== Examples

* link:index_in_dir/index.js[]
* link:version.js[]
* link:http.js[]
* link:set_timeout.js[]
* process
** link:false.js[]

== Webdev

=== Mean stack

Hello world examples:

* https://github.com/didinj/mean-stack-angular6-crud-example works at 0efdf5cd350f7db35da3d5b21f1f5e7bed1abcfc node v10.15.1, actually contains a minimal CRUD example
* https://github.com/DimiMikadze/Mean-Blog did not work at 01c6ff84a9f2ae92b87827001e63ac13a60eb9d4 I think, did not create database. I don't like it's aesthetics though.
* https://github.com/meanjs/mean works as shown at https://github.com/meanjs/mean/issues/2010 but boring, can't see the CRUD minimal example easily
* https://github.com/linnovate/mean/issues/1938 couldn't get running: https://github.com/linnovate/mean/issues/1938#issuecomment-460043971

== Testing this repo

=== Linting

TODO: linting with eslint is setup, but there are many old failing files.

At some point we want to fix those and move the linting into `npm test`.