/weather-app-web

basic node-web-server for forecast app

Primary LanguageJavaScript

Weather app

A weather application written in node.js that gets from mapbox.com the geocode location of your searched place, and use it to request from darksky.net a forecast summary report of that location. Accessible at https://thlsbrn-weather-app.herokuapp.com.

Table of contents

Installation and Usage

Clone repository

git clone https://github.com/thalesbruno/weather-app-web

On brand new weather-app-web directory created, run npm install to install all project dependencies.

So, you'll be already able to start the app using node src/app.js.

Technologies covered

Express

Express is a web framework for node.

Install

npm i express

Usage

const express = require('express')
const app = express()

app.get('', (req, res) => {
  res.send('Hello World')
})

app.listen(3000, () => {
  console.log('Server listening on port 3000')
})

📄 Read the docs

HBS

Express.js view engine for handlebars.js

Install

npm install hbs

Usage

app.set('view engine', 'hbs')

📄 Read the docs

Heroku

Heroku is a cloud platform that lets companies build, deliver, monitor and scale apps

Install
📄 How to install Heroku CLI

Login into heroku from heroku local cli:
heroku login

Passing ssh keys for make things secure:
heroku keys:add

Creating the app name. The name must be unique in all heroku base:
heroku create heroku-unique-app-name

📄 Read the docs