Skip to content

DBProductions/nodejs-stuff

Repository files navigation

NodeJS stuff

Simple examples with NodeJS and different NPM packages.
It's maybe helpful when you want to start or work with NodeJS.

NodeJS Homepage
io.js merged with the NodeJS project again
Ayo.js newest fork

Prerequisites

You must have git, node and npm installed.
There are other dependencies like MongoDB, Redis and so on.
Depending on your environment you need to install them or extend the docker-compose file.

Clone repository

Clone the nodejs-stuff repository.

$ git clone [email protected]:DBProductions/nodejs-stuff.git
$ cd nodejs-stuff

Dependencies

Install all the dependencies or pick the ones you want to use from the package.json file.

$ npm install

Docker

The docker-compose file includes several third party software like RabbitMQ, NATS, Kafka, Redis, MongoDB, MySQL and Neo4j.

$ docker-compose up redis
$ docker-compose up mongodb redis

npm run

Have a look at package.json file to see the npm scripts.

$ npm i -g npm-ls-scripts
$ ls-scripts

Folder structure

database
    mongodb
    mongoose
    mysql
    neo4j
    redis

filesystem

messaging
    kafka
    nats
    rabbitmq
        amqp
        amqp-connection-manager
        amqplib
        bunnybus
        jackrabbit
        node-amqp
        rabbit.js

network
    http
        request    
        webserver
    net
    udp

realtime
    socket.io
    sockjs

webframeworks
    connect
    express
    fastify
    koa

Feedback

Star this repo if you found it useful. Use the github issue tracker to give feedback on this repo.

About

Collection of nodejs code examples

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published