Take existing node js code and convert to functions for easier reading

Have existing chat application code (800 lines) that is written in non modular - HARD to READ

You will reformat, place code in functions, add comments to make it EASIER to READ and offer recommendations for improvement.

This is sample of some of the code

[url removed, login to view](function (err, messages) {

if (err) {

// handle an error to inform client that this user handnt Messages

} else {

for (var k = 0, l = [url removed, login to view]; k < l; k++) {

if (messages[k].[url removed, login to view] == 0) {

// on supprime ce message

messages[k].remove(function (err) {



if (messages[k].notify_me == true) {

// recuperation des users ayant vu le message

var users_vus = messages[k].receivers;

for (var i = 0, le = [url removed, login to view]; i < le; i++) {

if (users_vus[i].vu == true) {

var message = {};

[url removed, login to view] = messages[k].id;

[url removed, login to view] = messages[k].titre;

[url removed, login to view] = messages[k].content;

[url removed, login to view] = users_vus[i].date;

[url removed, login to view] = {

'id': users_vus[i].id,

'email': users_vus[i].email,

'pseudo': users_vus[i].pseudo


[url removed, login to view](message); // adding notification

[url removed, login to view]('delete FROM message_receivers WHERE receivers_id=? AND message_id=?', [[url removed, login to view], [url removed, login to view]], function (err, rows) {







receipts = [url removed, login to view](receipts, ['date'], ['desc']); // trier les messages reçu orderby desc Date

[url removed, login to view] = receipts;

var favoris = [];

[url removed, login to view](function (err, userfavoris) {

for (var k = 0, lf = [url removed, login to view]; k < lf; k++) {

var fav = {};

[url removed, login to view] = userfavoris[k].id;

[url removed, login to view] = userfavoris[k].email;

[url removed, login to view] = userfavoris[k].pseudo;

[url removed, login to view](fav);


[url removed, login to view] = favoris;

[url removed, login to view]('logged', responseLogin);




} else {

[url removed, login to view]('access-denied', {code: 403});






Taidot: node.js

Näytä lisää: software write mq4, software write chip epson, useful software write book, software write web specs, free software write user guide, software write edid, free software write company profile, software write websites idea, software write book images, software write books, software write protection, free software write book, software write book, convert code mac, vehicle plate reading source code, convert code project, convert code dll code, pdf html convert code, convert code vbnet 2008, php convert code, convert code linux, current myspace layout convert code, convert code matlab, convert code html css, software convert code vbnet

Tietoa työnantajasta:
( 65 arvostelua ) Nashville, United States

Projektin tunnus: #13144305

Myönnetty käyttäjälle:


Hello, I am format the code to a good readable format and I will make necessary comments where ever required. Regards, Samiran

$70 USD 3 päivässä
(4 Arvostelua)

16 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

$368 USD 3 päivässä
(78 arvostelua)

Hello, I am Sr. web developer have strong debugging and coding skills. I am full stack developer with good knowledge of Java, JavaScript, MySQL, MongoDB, NodeJS, ExpressJS, AngularJS, JQuery, HTML, Bootstrap, etc. Lisää

$400 USD 10 päivässä
(45 arvostelua)
$147 USD 3 päivässä
(6 arvostelua)

Hi, I am Shafayat, I am an M.E.A.N. stack developer. I believe I am one of the best candidates for this job. If you have a minute I would request you to send me a message so we can discuss further specifications :) Lisää

$444 USD 10 päivässä
(6 arvostelua)

Hi, Happy To Help.I will be able to complete the task in a couple of days. I understand what you [url removed, login to view] can discuss the details further before i start. Thanks

$150 USD 2 päivässä
(2 arvostelua)

Hi there I am a node programmer. I can take your node js code and format it to the way it is easily readable and manageable. It is good if you could share the code in advance for our perusal. Looking forward to hear Lisää

$189 USD 3 päivässä
(5 arvostelua)
$157 USD 2 päivässä
(3 arvostelua)

Hi, We are a team of experienced developers very well versed in Python(Tkinter, wxpython, Kivy,PyQT, OpenCV, pygame etc.),Java core, Advanced Java, Node.js, [url removed, login to view], Angular.js, MongoDB, Mongoose, Android and Ion Lisää

$150 USD 20 päivässä
(4 arvostelua)
$200 USD 3 päivässä
(1 arvostelu)

Hi, I have more than 4 experience in web development and more than 3 years in NodeJs technology. I done more than 8 project as Full stack developer. I have very good understanding in NodeJs technology.

$155 USD 3 päivässä
(1 arvostelu)

I will give you the proper code you need in about 2 days time. I will need access to the whole code.

$50 USD 3 päivässä
(0 arvostelua)

Hello, I am good at Node JS, Express JS, javascript. Please let me get the source to rebuild. If you have any question, please let me know. Thanks, Best, Yuan.

$155 USD 3 päivässä
(0 arvostelua)

A proposal has not yet been provided

$55 USD 3 päivässä
(0 arvostelua)
$111 USD 5 päivässä
(0 arvostelua)

• 4 years of expertise in complex, scalable and high performance web application development. • Strong expertise in Web Application development using java script with OOPs, Node.js, Express Framework, MongoDB, Oracle Lisää

$143 USD 3 päivässä
(0 arvostelua)