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. Function Registration
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. |
Mongo Database
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. Connection string
The connection we are using in our intermediate as expressjs - nodejs. mongodb+srv://kylebuilds:<PASSWORD>@facebook-crm-dev-bdag6.mongodb.net/test?retryWrites=true Mongo DB version 4.0we are using mongo db 4.0 in our project as provided by cloud mongo db. |
Chrome Extension
Extensions are small software programs that customize the browsing experience. They enable users to tailor Chrome functionality and behavior to individual needs or preferences. They are built on web technologies such as HTML, JavaScript, and CSS. 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. Extension LoginWe are authenticated a user in order to use a extension. There is API build in express js. User have register first on moxycrm.com |
Cheatography
https://cheatography.com
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets