Skip to content

Instantly share code, notes, and snippets.

@ReactGirl
Created October 27, 2018 06:43
Show Gist options
  • Select an option

  • Save ReactGirl/a5a8b5b4e2c66956d78f8fb3869940ad to your computer and use it in GitHub Desktop.

Select an option

Save ReactGirl/a5a8b5b4e2c66956d78f8fb3869940ad to your computer and use it in GitHub Desktop.

Revisions

  1. ReactGirl created this gist Oct 27, 2018.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    const express = require('express')
    const chalk = require('chalk')
    const app = express()

    app.all('*', (req, res) => {
    res.send(`<h1> welcome to my homepage </h1>`)
    })

    app.listen(3000)
    console.log(chalk.cyan('sever started'));