Expressjs - Nodejs
Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
Function - checkmailexist
This function check if email id already exist in mongo db. Return true or false.
This is used for registration in website. There are four parameters name,email and password.
Function - apilogin
This function is used for chrome extension login. There are two parameters are accepted email and password. Return false if invalid login details otherwise unique ID of user.
Function - logincheck
This function is used for website login . There are two parameters are accepted email and password.
Function - connect
This function is used for push data to mongo db extracted by chrome extension. There are two parameters one is user_id and second is array of data of facebook friend list.
MongoDB is a cross-platform document-oriented database program. It is issued under the Server Side Public License version 1, which was submitted for certification to the Open Source Initiative but later withdrawn in lieu of SSPL version 2.
Database - new_import
Table - facebook_user : store list of imported of users from facebook.
Table - site_users : store list of website users.
The connection we are using in our intermediate as expressjs - nodejs.
Mongo DB version 4.0
we are using mongo db 4.0 in our project as provided by cloud mongo db.
Extract User List
The content js of chrome extension file extract list of users who we are messaged. After abstraction we send list of users to background js to send a data to mongo. we are using API for this built in express js - node js.
We are authenticated a user in order to use a extension. There is API build in express js. User have register first on moxycrm.com