- Node > 12.13.1
- MongoDB (or at least a server with it)
- Locally:
docker run --rm -d \ --name order-mongo \ -v /path/to/git/order-management/dev-mongo:/data/db \ -p 27017:27017 \ mongo
- Server:
ssh -L 27017:localhost:27017 remote-user@212.83.56.107
- Webserver (Nginx, Apache) for production (Let's Encrypt for Certificate)
- PM2
- Install Node
- Install Mongo
- Install PM2 via npm
- Install a Webserver with SSL Certificate
- Check Configuration of this project (order-management/api/config/config.ts for backend and order-management/frontend/app/config/routes.ts for frontend)
- Create an IBM Watson IoT Platform organization
- Create a role and remember it's name, the role has to be able to create api keys
- Create a device type named "Sensor"
- Create an application to get an API Key and it's password
- Update: ecosystem-, config.ts, environment with OrgID (top right corner on every page), API Key and API password
If iot-tests fail, try deleting existing testcase-users as there might be an incorrect entry
If you use this boilerplate with VSCode you can run the debugger for node with npm run api-dev
and use the feature in the bottom line 'auto attach' when running 'Attach to NPM'. This auto attaches the debugger to the running npm process.
To run the app in dev mode you need to run npm run api-dev
and npm run ng-dev
. The application will then run on localhost:4200 for the angular app and localhost:3000 for the node backend. These commands will rebuild the nodets and ng application on changed files. Beaware that the backend server only starts when a debugger is attached to it.
You can login to the initial admin user with username: admin and password: E9bBs8UpeASq