Giter VIP home page Giter VIP logo

students-on-the-bus's Introduction

Students-On-The-Bus

node.js app using javascript constructors, requires, and exports

Basic javascript application run in command line using node.js that uses javascript constructors, requires, module.exports, and objects. Users can create students using by running a script that utilizes the npm prompt tool to capture input. The information captured is run through the student constructor and the resulting object is written to a text document using node's fs package. The user can then run the main app which first creates a bus object by running a contructor from a separate required file. The main.js then adds all the current students to the bus object and a function is triggered to output data from the objects based on a set of requirements.

Instructions to run locally

  1. Clone repository
git clone https://github.com/jeremiahscanlon/Students-On-The-Bus.git
  1. Navigate to newly installed folder and download npm packages
cd *path*/Students-On-The-Bus/
npm install
  1. Add students by running student.js using node.
node student.js
  1. Load the bus and check the student responses by running main.js using node.
node main.js

Notes

  • You can run node student.js over and over again to add more students

  • The student objects are stored in allStudents.txt

  • There are 20 student examples saved in allStudents.txt now. To start your own list you can delete the contents of this file on your install

  • In order for the student's catchphrase to show when running main.js they must have a gpa > 2 and detentions < 10

Questions

For questions, contact Jeremiah Scanlon ([email protected])

students-on-the-bus's People

Contributors

jeremiahscanlon avatar

Watchers

 avatar  avatar

students-on-the-bus's Issues

Homework Week 11

Hey Jeremiah nice job on the homework, but I noticed you were using the prompt module and not using it in your program. I try refactoring it to create a program where the user inputs data and based on the users input the constructor function will run on its nested function (of your creation).

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.