This app loops through your articles and checks to see if they have a user_segment. If it does, then it will add a corresponding label to the article and if it doesn't tags them as public.This can be used to filter the articles in the mobile sdk
Follow these steps to get a local copy up and running.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/eric-at-zd/article-label-adder
- Install dependancies
npm install
-
Copy the .env.example file into an .env
-
Replace placeholder values with one's relevant to your account
-
Run the app. Unless otherwise specified, this will open on localhost:5000
npm run start