barrycumbie / solid-fishstick-snowcats

Dr. Cumbie (yet again) re-staring a class repo for CIS 486 Spring '24 | https://solid-fishstick-snowcats.onrender.com
https://barrycumbie.github.io/solid-fishstick-snowcats/
GNU General Public License v3.0
1 stars 18 forks source link

init my node project & set up express #3

Open barrycumbie opened 10 months ago

barrycumbie commented 10 months ago
barrycumbie commented 10 months ago

Starter express code on app.js


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

app.get('/', function (req, res) {
  res.send('Hello World')
})

app.listen(3000)
barrycumbie commented 10 months ago

to test, in terminal we wanna run:

$: node app.js

in our browser: http://localhost:3000/

barrycumbie commented 10 months ago
Screen Shot 2024-01-18 at 6 15 11 PM
barrycumbie commented 10 months ago

now, kill your node process: ctrl + C or cmd + C