Basic express server for running tests.
- NodeJS
- version 10.16.3 was used for this project
- Windows 10 64-bit OS
-
index.js
Basic express server set-up. -
index-static.js
Basic express server set-up that serves static (html, css, js) scripts from the /public directory.
-
Clone this repository.
git clone https://github.com/weaponsforge/server-basic.git
-
Install dependencies.
npm install
-
Run the server.
npm run start
to start the basic express servernpm run dev:static
to start the basic express server that loads static (front-end) files from the /public directory.
-
Open a web browser to
http://localhost:3000
http://localhost:3000/test
20191030