
Move bulk of server .js file files to /server, all client related files live in /client (including /public), webpack scripts now live in /scripts, cleanup of paths in /client/src/js/index.js and webpack.js.
15 lines
308 B
JavaScript
15 lines
308 B
JavaScript
const express = require('express')
|
|
const app = express()
|
|
const port = 3000
|
|
|
|
app.get('/', (request, response) => {
|
|
response.send('Hello from Express!')
|
|
})
|
|
|
|
app.listen(port, (err) => {
|
|
if (err) {
|
|
return console.log('something bad happened', err)
|
|
}
|
|
|
|
console.log(`server is listening on ${port}`)
|
|
})
|