Skip to content

ankity10/lazynotes_backend_nodejs

Repository files navigation

Notelet Backend

This repository is backend implementaion for Notelet Linux Application.

Dependencies

Development dependencies

  1. MongoDb
  2. Redis
  3. node, npm
  4. rabbitmq

Testing dependencies

  1. Python3
  2. pytest
  3. pyredis (python redis clien)
  4. pymongo (python mongo client)
  5. pika (python rabbitmq client)

Installation Steps

  1. Install development dependencies via package manager of oyur system like apt, dnf, yum, pacman etc.
  2. Enable Rabbitmq Management plugin by running following code:
    rabbitmq-plugins enable rabbitmq_management
  1. Then you will need a rabbitmqadmin python script file, you can find this file in root folder of repo. You need to copy it you /usr/bin folder.
    sudo cp rabbitmqadmin /usr/bin
  1. After installing all the development dependencies, download node dependencies by running following command in root of repo.
    npm install

Checklist

Before going further please check once again that you have following packages installed in order to run the server.

  1. Mongodb, Redis, Rabbitmq with management plugin enabled, node and npm. Now since you have all the devlopment dependencies you can proceed further to start the server.

Starting the server

This command will launch the sevrer with 5 worker processes by default.

    node server

Testing Server

Install following dependencies by the command below in order to run tests. This command will download pytest, pymongo, pyredis, pika.

    python3 -m pip install -r requirements.txt

Steps to tests server

  1. Start the server by command: "node server"
  2. Run this command:
    npm test

Currently this command will only test Http REST Api.

About

Lazynotes backend in nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published