andrewjmead / node-course-v3-code Goto Github PK
View Code? Open in Web Editor NEWCode for version 3 of The Complete Node.js Developer Course
Code for version 3 of The Complete Node.js Developer Course
Tried all examples on gist, they all produce the same error.
console.log(tasks.getTasksToDo())
^
TypeError: tasks.getTasksToDo is not a function
at Object. (/home/nemi/code/playground/3-arrow-functions.js:16:19)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
[nodemon] app crashed - waiting for file changes before starting...
Hi Andrew,
I have attended your course on Udemy for nodejs. It was really helpful.
Based on your guidance, I am using node module in my application. I am facing issue while using npm exchange rate module. It seems module is using api ratesapi.io which is dead now. Based on some research, I have replaced the baseurl with setApiBaseUrl('https://api.exchangerate.host') in node module as administrator of exchange-rate node module have not changed the code yet to use correct url .
It was working fine in my local version but when I have deployed my code, it's still picking api ratesapi.io
Could you please help me with the solution, I am using SAP HANA cloud with nodejs. When I deploy my code, node modules are not getting deployed as its automatically pick from public library.
I have already raised this issue to the owner as well but no response as of now. I need to fix this urgently due to planned release.
(over-engineer/exchange-rates#12)
Regards,
Deepti
Hope the package is removed from npm. could you please update the project to work without it?
Hello Andrew,
I am learning MongoDB from your course. I am at the section Mongodb and promises. In the video connecting and inserting the documents you had used MongoClient to conneect to the Database.
I had followed all the same steps
const MongoClient= mongdb.MongoClient
const connectionURL='mongodb://127.0.0.1:27017'
const database='task-manager'
MongoClient.connect(connectionURL,{useNewUrlParser:true},(error,cient)=>{
if(error){
console.log("error")
}else{
console.log("connected")
}
const db=client.db(database)
db.collection('Users').insertOne({
name:"Dushu"
})
})
When I run the js file the terminal is not printing success message and the terminal is stuck. I see the mongod as request is being made as below,
{"t":{"$date":"2024-02-28T22:16:45.463+05:30"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn1","msg":"client metadata","attr":{"remote":"127.0.0.1:6843","client":"conn1","doc":{"driver":{"name":"nodejs","version":"6.3.0"},"platform":"Node.js v18.14.2, LE","os":{"name":"win32","architecture":"x64","version":"10.0.22621","type":"Windows_NT"}}}}
I there is no error and no response and no database being created as well.
MongoDB Version: 7
Node Version: v18.14.2
Mongodb npm package version: ^6.3.0
I tried downgrading mongodb, node, npm package still the issue persists. I see alot is stack over flow links and MongoDB community pages with same issue but no perfect resolution.
Could you please help me out as it is blocking the next steps in the course.
https://stackoverflow.com/questions/21848406/mongodb-node-js-client-connect-hangs
https://www.mongodb.com/community/forums/t/code-hangs-on-connection/219900/3
While accessing via address bar APIs( https://api.mapbox.com/geocoding/v5/mapbox.places/..., https://api.darksky.net/forecast/....) working fine.
While using web-server project code then in request({ url, json: true }, (error, { body} = {}) => {......
body is undefined
Error: connect ETIMEDOUT 13.227.238.179:443
Using a semicolon in the address field of weather app crashes the server
darksky does not give free access to API development and there is no sing up available any more , and by using the same url in teaching course i get the error below { code: 401, error: 'permission denied' } when use the response.body
code.
i can't even use your url using for teaching .
Hi, this is a bit obscure, specially for anyone new to Javascript, I'm not sure when you're going to make a new version, or if you can put a note there on Udemy... but maybe refactoring this to make it more legible could help your students.
if (req.query.sortBy) {
const parts = req.query.sortBy.split(':')
sort[parts[0]] = parts[1] === 'desc' ? -1 : 1
}
Thanks o/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.