An open API service indexing awesome lists of open source software.

https://github.com/matthewbub/express-example

easy-to-read express server example.
https://github.com/matthewbub/express-example

expressjs html nodejs

Last synced: 3 months ago
JSON representation

easy-to-read express server example.

Awesome Lists containing this project

README

          

# Express Example

This is a basic example of an Express server.

## Setup on your local machine
```bash
# 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
```

## Make the most of this app

```
express-example
├── ...
├── index.html
├── index.js
├── package.json
└── ...
```

- Start with the `scripts` object within the [package.json](https://github.com/hi-matbub/express-example/blob/cef5c9246b1bfd628aef04b4f863a519163b0876/package.json#L4-L9) to see how we can invoke the app.
- [index.js](https://github.com/hi-matbub/express-example/blob/main/index.js) contains the _express server_. You should really **use this file as the focal-point of this study.**
- [index.html](https://github.com/hi-matbub/express-example/blob/main/index.html) contains the _front end code_

That's all there is to this one!