Skip to content

khankamolk/cosmiq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cosmiq - Interstellar Travel Distance Calculator

View Project Specs

This project was completed as part of the course CS 160: User Interface Design and Development. See the live website, or check out the demo linked down below.

\

Running this code locally

We're going to be using a command-line interface. (I'm writing this from the perspective of a Mac user using Terminal (zsh). If you're a Windows user, you might use Powershell. If you use Visual Studio Code, you might find this page helpful.)

1. Clone or download this repo to your computer.

Once you've got it, navigate to the directory (ex: $ cd starter-code)

Check to see if you can run $ node -v and $ npm -v (My versions are v16.15.0 for node and 8.10.0 for npm.)

3. Install the Express module using npm.

ex: $ npm install express

4. Run the example app using Node:

ex: $ node App.js

You should see the message Server is running on http://localhost:8000

If you instead see an error message like Error: Cannot find module 'express' -- see step 3.

5. View the website

Open a web browser (e.g. Google Chrome) to this URL: http://localhost:8000/