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.
- Host: GitHub
- URL: https://github.com/matthewbub/express-example
- Owner: matthewbub
- Created: 2020-12-17T02:01:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-01T02:31:24.000Z (over 3 years ago)
- Last Synced: 2025-03-17T23:41:44.791Z (over 1 year ago)
- Topics: expressjs, html, nodejs
- Language: HTML
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!