stpCollabr8nLstn / temp_converter

This app is a basic demonstration showing how to implement a node.js server and html/js front end to run a temperature converter.

Home Page:http://cs.txstate.edu/~amr225/convert-it/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert It!

This app converts Celcius, Fahrenheit or Rankine to Kelvins. There are two apps. One implements a client-server build and a second uses only client-side processing.


About the build

Client-Server

Source Code:

- app.js
- views/base.pug
- views/convert.pug
- views/index.pug
- static/script.js
- static/style.css

Front End

The front end utilizes pug templates. You'll notice the syntax of pug is similar to that of HTML.

Use this app by navigating to localhost:3000/

Back End

The back end is running on an express server with node.js.

Client-Side

Source Code:

- static/client-index.html
- static/client-script.js
- static/style.css

Use this app by navigating to localhost:3000/client-index.html


To run locally:

  1. Make sure you have a terminal or terminal emulator to run the following commands.
  2. Download and install the latest version of node.js
  3. Verify the install and run
    node --version
    
  4. Download the repo either by the .zip or by running
    git clone https://github.com/stpCollabr8nLstn/temp_converter.git
    
  5. cd to the directory
    cd AssignmentW1
    
  6. Install the node modules
    npm install
    
  7. Run the program
    npm start
    
  8. Open a browser and navigate to localhost:3000

About

This app is a basic demonstration showing how to implement a node.js server and html/js front end to run a temperature converter.

http://cs.txstate.edu/~amr225/convert-it/


Languages

Language:JavaScript 45.8%Language:HTML 33.5%Language:CSS 20.7%