Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialize my node project & set up express #3

Open
Jean-alien opened this issue Jan 22, 2024 · 5 comments
Open

initialize my node project & set up express #3

Jean-alien opened this issue Jan 22, 2024 · 5 comments

Comments

@Jean-alien
Copy link
Owner

No description provided.

@Jean-alien
Copy link
Owner Author

Jean-alien commented Jan 22, 2024

  • on your DevBox, vsCode, open your git project, & terminal (gitBash or bash)
  • git status
  • npm init -y
  • git checkout -b iss3 <== create a new branch whose name is iss3
  • git status
  • npm i express <== install express
    -- visit npmjs.org ==> to get express code

@Jean-alien
Copy link
Owner Author

Jean-alien commented Jan 22, 2024

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)

@Jean-alien
Copy link
Owner Author

Jean-alien commented Jan 22, 2024

to test, in terminal we wanna run:

$:

  • touch app.js
  • node app.js

※ Success --> Localhost: 3000 responds.

localhost 3000 connected

@Jean-alien
Copy link
Owner Author

Jean-alien commented Jan 22, 2024

git push branch iss3

Success: new branch iss3 being pushed.

@Jean-alien
Copy link
Owner Author

swtich branch command:

  • git switch branch_name

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant