0.0.7 • Published 3 years ago

vartalap v0.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

VARTALAP

VARTALAP is a simple chat package that helps you build a single or group chat module in your node or any other application where node runs, in a easy manner. It uses Socket.io for real-time communication, MySql for database storage, Express for server creation and Moments for timezone converstions.

Install

npm install vartalap

Usage

.env configuration

Go to node_modules/vartalap

Edit the .env file in this directory. Change the following environment-specific variables with your own configuration details.

VARTALAP_HOST_URL=http://localhost VARTALAP_DB_HOST=localhost VARTALAP_DB_USER=root VARTALAP_DB_PASSWORD=password VARTALAP_DB=database_name VARTALAP_PORT=3000

Setup database

npm run setup

This command will create the tables required by the module.

Run chat

npm run start

This command will run the chat at the specified port till the session you are connected to the terminal. For permanent execution use a process manager.

Intall Process Manager

In order to start the socket we must use a process manager. Here we are using the PM2 process manager. Will install the process manager globally. To do so we have used to -g flag.

npm intall pm2 -g

&&

npm start vartalap.js

!!! Done !!!

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago