NodeJs REST API for Person intended to be a best practices demo
npm install
If you change the port from default of
30083
, then updatelaunch.json
as well and change theAPI_PORT
environment variable
Configure port (powershell)
setx API_PORT 30083
Refresh the environment variables
if you have https://community.chocolatey.org/ installed, just run
refreshenv
If not, close and re-open the terminal to get a fresh session + vars
npm start
-or-
node .\index.js
npm install jest --global
jest --coverage
Make sure site runs
Be in the root folder
Install JsDoc globally
npm i jsdoc -g
scripts/Invoke-JsDoc.ps1
docs/
Where version
is the version attribute from package.json
cd docs/
start index.html
Which will launch documents in the default browser
Files:
Run the PowerShell script to build and run docker container. Container will run as the user Node
InfoRouter
routes are assumed to be blocked if neededconfig\ev.js