Giter Site home page Giter Site logo

katieburrows / nodeweather Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.23 MB

Using the CLI the user is able to interact with this program to make weather queries or to view all the queries that have been made.

JavaScript 100.00%
javascript node npm fs weather-js momentjs constructors

nodeweather's Introduction

                                             Node Weather 

Using the CLI, the user is able to use the program as either the user or the administrator. The user will start the file in node and then type in "user", their name, and the location they are looking for weather data on. This search will be written into a .txt file that also logs the date that they made this query. The query will be used to look up the weather for the location specified using the weather-js npm package. Once the query is made the data will come back to the CLI in the form of a console.log. An admin will start the program in node and type "admin" which will then pull data from a .txt file. That data (user's name, location that was searched, and the day that they searched on) will be displayed in a console.log to the CLI.

Although this is not the most practical/optimal way to use constructors/module.exports it is an example of how they can be used. The construction begins at userConstructor.js and feeds into adminConstructor.js with everything threading together in logic.js.

The text entered into the CLI as a user to kick off a search: User search language

The result of a user's search: User search results

The text entered into the CLI as an admin to read the adminLog.txt file: Admin language

The result of an admin request: Admin results

Built With:

  • JavaScript
  • Node
  • fs NPM
  • Moment NPM
  • Weather-js NPM
  • Constructors

Developed by Katie Burrows

nodeweather's People

Contributors

katieburrows avatar

Watchers

 avatar

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.