Skip to main content

Posts

Creating Chat Applications using NodeJS, Socket.io & Mysql Part 3

Result.ejs  script. This script is to set the display when searching for friends.  <% if(items != 0) {%> <table class="table table-borderless mt-3" style="width: 100%;border-radius:5px;"> <thead class=""> <tr style="border-bottom:1px solid #e3e3e3"> <th style="width:7%;text-align:center" hidden>No</th> <th style="display:none;">Username</th> <th style="width:68%">Name</th> <th style="width:10%"> </th> </tr> </thead> <tbody> <% items.forEach((item, i) => { %> <tr row-id="<%= item.id_user %>" style="border-bottom:1px solid #cdcdcd;"> <td style="text-align:center;vertical-align:middle" hidden><%= Number(i)+1 %></td> <td style="vertical-align:middle;display:non...

Creating Chat Applications using NodeJS, Socket.io & Mysql Part 4

Server.js  script. Server.js is the brain of this application. In this file I manage all routing urls, run queries to be able to access, store, update data from database, manage login/registration system and manage private real time chat system. let express = require('express'); let session = require('express-session'); let expressFileupload = require('express-fileupload'); let sharp = require('sharp'); let app = express(); let server = require('http').createServer(app); let io = require('socket.io').listen(server); let flash = require('connect-flash'); const mysql = require('mysql'); const path = require('path'); const jquery = require('jquery'); const fs = require('fs'); const htmlspecialchars = require('htmlspecialchars'); const htmlspecialchars_decode = require('htmlspecialchars_decode'); // prepare server // app.use('/api', api); // redirect API calls app.use('/cu...

HEALTH Weight Loss Diabetes Diet

 NDTV FoodEng  Select Languages हिंदी | Hindi Search Recipes FEATURES Food News Cooking Tips Opinions World Cuisine Food & Drinks Festivals Restaurant Review Facts Best Recipes Web Stories 7 Best Gujarati Recipes You Must Try 7 Health Benefits Of Ghee Unique Chicken Keema Idli Recipe How To Make Doughnut At Home 7 Easy And Delicious Detox Drinks 6 Health Benefits Of Makhanas How To Make Paneer Do Pyaza How To Eat White Rice For Weight Loss Food & Drinks For Better Bone Strength, Include These 7 Fruits And Vegetables In Your Diet For Better Bone Strength, Include These 7 Fruits And Vegetables In Your DietADVERTISEMENTWant to improve your bone health? Try including these healthy foods that are high sources of calcium and Vitamin D.Edited by NDTV Food DeskUpdated: September 03, 2021 09:00 IST For Better Bone Strength, Include These 7 Fruits And Vegetables In Your Diet Improve bone health with these foods Highlights Your bone health can deteriorate with growing ageYou need...

7skje6f5f4v3v

  Eng  Select Languages हिंदी | Hindi Search Recipes FEATURES Food News Cooking Tips Opinions World Cuisine Food & Drinks Festivals Restaurant Review Facts Best Recipes Web Stories 7 Best Gujarati Recipes You Must Try 7 Health Benefits Of Ghee Unique Chicken Keema Idli Recipe How To Make Doughnut At Home 7 Easy And Delicious Detox Drinks 6 Health Benefits Of Makhanas How To Make Paneer Do Pyaza How To Eat White Rice For Weight Loss Food & Drinks  For Better Bone Strength, Include These 7 Fruits And Vegetables In Your Diet For Better Bone Strength, Include These 7 Fruits And Vegetables In Your Diet ADVERTISEMENT Want to improve your bone health? Try including these healthy foods that are high sources of calcium and Vitamin D. Edited by NDTV Food Desk Updated: September 03, 2021 09:00 IST Improve bone health with these foods Highlights Your bone health can deteriorate with growing age You need to include more calcium and Vitamin D to improve bone health Read about t...

Ad by Adsterra