This is a basic example of an Express server.
# clone repo
$ git clone https://github.com/hi-matbub/express-example.git
$ cd express-example
# install dependencies
$ npm i
# start server
$ npm run start
# start dev server
$ npm run start:dev
express-example
├── ...
├── index.html
├── index.js
├── package.json
└── ...
- Start with the
scripts
object within the package.json to see how we can invoke the app. - index.js contains the express server. You should really use this file as the focal-point of this study.
- index.html contains the front end code
That's all there is to this one!