Simple Node.js Command Line Weather Application
- Check out the Live Demo
- Read the full tutorial on how to build this application at codeburst.io
- Run the web app locally:
node server.js
// Now open your browser and visit: localhost:3000
Weather Website using Node.js, Express, and OpenWeatherMap's API
Home Page: https://simple-nodejs-weather-app-irhhpddsku.now.sh/
Simple Node.js Command Line Weather Application
node server.js
// Now open your browser and visit: localhost:3000
PS C:\PROJECTS\weather-app\weather-website> node server
module.js:549
throw err;
^
Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (C:\PROJECTS\weather-app\weather-website\server.js:3:17)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
hi,
I am new to node.js developing while running this Whether-app, I didn't get any response while submitting a city name, always getting "Error, please try again" this response.
Refused to load the font '' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'font-src' was not explicitly set, so 'default-src' is used as a fallback.
I tried to deploy the weather app to Microsoft Azure. I get a HTTP 500 Error. On which version of Node.JS does the app work or is it set up?
Hi, here are the steps I did.
But http://localhost:3000 is not working...
These same steps on Windows 10 result in a working app, but not on macOS Catalina.
P.S. I tried sample NodeJS app, and it works well.
Can you help resolve this issue?
I was never able to make the style.css work 404
com/css/style.css net::ERR_ABORTED 404 (Not Found)
Any ideas? :)
Your using an outdated version of the deployment URL for Vercel.
It used to use the .now.sh
domain but has now moved to the .vercel.app
domain.
It returns a 404 Not found
error: { Error: socket hang up
at createHangUpError (_http_client.js:331:15)
at Socket.socketOnEnd (_http_client.js:423:23)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9) code: 'ECONNRESET' }
This is in my Output Terminal what is the problem?
Error: Cannot find module 'request'
at Object.<anonymous> (I:\weatherApp\server.js:3:17)
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.