https://github.com/weaponsforge/express-basic
Basic express server for quick tests.
https://github.com/weaponsforge/express-basic
express tools
Last synced: 7 months ago
JSON representation
Basic express server for quick tests.
- Host: GitHub
- URL: https://github.com/weaponsforge/express-basic
- Owner: weaponsforge
- Created: 2019-10-30T09:47:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T11:25:21.000Z (over 3 years ago)
- Last Synced: 2025-06-04T20:27:30.374Z (11 months ago)
- Topics: express, tools
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# express-basic
> Basic express server for running tests.
### Prerequisites
1. NodeJS
- version 10.16.3 was used for this project
2. Windows 10 64-bit OS
## Content
1. **index.js**
Basic express server set-up.
2. **index-static.js**
Basic express server set-up that serves static (html, css, js) scripts from the **/public** directory.
## Usage
1. Clone this repository.
`git clone https://github.com/weaponsforge/server-basic.git`
2. Install dependencies.
`npm install`
3. Run the server.
- `npm run start` to start the basic express server
- `npm run dev:static` to start the basic express server that loads static (front-end) files from the **/public** directory.
4. Open a web browser to
- `http://localhost:3000`
- `http://localhost:3000/test`
20191030