This is a simple demo service that listens to a configured UE Streams data stream and writes everything it sees to a mongodb database. The project is written in TypeScript ESM. It was generated using a boilerplate, but the important files/directories are:
- ./env_ci/env.dev.json
- ./src/listener.ts
- ./src/datalake/
There is additional and optional functionality as part of the boilerplate to secure this or any service with UE Auth. For help with that contact us at [email protected].
- clone your project to your machine
- start mongodb on port 27017
- I find the easiest way to do this is via docker in a terminal
- docker run -p 27017:27017 mongo
- Copy ./.env_ci to ./.env and modify env.dev.json
- Create a stream in UE Streams and copy the appropriate access data into ./env/env.dev.json
- yarn test (will run yarn and build)
- yarn dev
- navigate to localhost:3000