HA-Users User Service
Get started developing...
First of all create a .env file. You should use the .env.sample as a template:
cp .env.sample .envFill in all the empty values with whatever suits you best. After you're done you can run the following sequence of commands:
# install deps
npm install
# start PostgreSQL
npm run dev:db
# run in development mode
npm run dev
# run tests
npm run testInstall all package dependencies (one time operation)
npm installRuns the application is development mode. Should not be used in production
npm run devor debug it
npm run dev:debugCompiles the application and starts it in production production mode.
npm run compile
npm startRun the Mocha unit tests
npm testor debug them
npm run test:debug- Open you're browser to http://localhost:3000
- Invoke the
/usersendpointcurl http://localhost:3000/api/v1/users
npm run dev:debug
npm run test:debug
Add these contents to your .vscode/launch.json file