Giter Club home page Giter Club logo

node-course-v3-code's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-course-v3-code's Issues

Darksky.net does not accept any new sing up !!

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 .

ratesapi.io is dead

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

Obscure, please refactor for legibility

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
}

const parts = req.query.sortBy.split(':')

Thanks o/

3-arrow-functions.js - tried all gist examples.

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...

MongoClient.connect is hung

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

  1. installed MongoDB and placed them in appropriate folder
  2. Ran mongod before running the js file
  3. Wrote the code in js exactly as mentioned in the video
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"
    })

})

ISSUE:

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.