GithubHelp home page GithubHelp logo

bmorelli25 / simple-nodejs-weather-app Goto Github PK

View Code? Open in Web Editor NEW
145.0 8.0 282.0 103 KB

Weather Website using Node.js, Express, and OpenWeatherMap's API

Home Page: https://simple-nodejs-weather-app-irhhpddsku.now.sh/

JavaScript 32.01% CSS 46.60% HTML 21.39%

simple-nodejs-weather-app's Introduction

simple-nodejs-weather-app

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

gif

simple-nodejs-weather-app's People

Contributors

bmorelli25 avatar

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

simple-nodejs-weather-app's Issues

module.js:549 throw err; ^

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)

response in not getting

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.

Content Security Policy directive

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.

Error 500

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?

Not working on macOS Catalina

Hi, here are the steps I did.

  1. Installed NodeJS
  2. Cloned this repo
  3. npm install express
  4. npm install ejs
  5. put my API key in server.js
  6. node server.js
  7. It says "Example app listening on port 3000!"

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?

style.css not found

I was never able to make the style.css work 404

com/css/style.css net::ERR_ABORTED 404 (Not Found)

Any ideas? :)

Live deployment not found

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

Code broken

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' }

MODULE_NOT_FOUND'

This is in my Output Terminal what is the problem?

Error: Cannot find module 'request'
at Object.<anonymous> (I:\weatherApp\server.js:3:17)

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.