Skip to content

Author: admin@master

Jenkins in docker, workspace location

I have a Docker container running Jenkins, I can successfully build my program but I could’nt find out where it is stored. At the end of my build I make a zip file of the JavaScript project (the dist …

Allow only certain events

Is there a way to only allow certain events in a custom eventEmitter? For example, if I have something like this everything works as expected: I get a callback every second on the first event and every 2 seconds on the 2nd event. For the 3rd nothing happens, because I don’t emit this event. Is there a w…

Can’t delete cookie in express

Pretty simple. I set a cookie like so in my /user/login route: I’ve already set my secret for cookie-parser: Pretty basic stuff. Everything is working great insofar as I’m able to retrieve whatever I stored in the cookie: This middleware is called before anything else, so for the sake of the argum…

Vue.js: define a service

I’m looking at Vue.js as an alternative to Angular and I really like it so far. To get a feeling for it, I’m refactoring an existing Angular project to a Vue project. I’m just at the point where I need to communicate with my REST API. In Angular I used to define a service for that, that was …