Nconf – simple, great solution for Node.js app configuration

When I started work with Node.js and Express, I was looking for something to store my app settings. Something like env files in many PHP frameworks – central place for configuration, not stored in repository, but only for example when we run app in development or production environment. We can write custom code for that, or use some modules from npm, also directly for env files. Nuxt package also has dedicated env file module. These modules are great, but there is something much, much better – nconf.

Continue reading “Nconf – simple, great solution for Node.js app configuration”

Run Node.js app on Ubuntu Server using pm2

I work with Node.js and some other JavaScript technologies in last months. One important think is – how run ready application on production server? It wasn’t easy question, because earlier I used only development mode in IDE (with automatic rebuild and generation in background). After some research I found pm2 – great package to run Node.js application in background. With that manager we can start, stop or restart many applications. Let’s see how we can easily run Node.js app.

Continue reading “Run Node.js app on Ubuntu Server using pm2”

Schwalbe X-One 700x33c Tubeless tyres – small review

I use my CX bike everywhere – one time with road wheelset and like road bike, second time with “terrain” wheelset and as gravel, in forest, meadows and fields. Very difficult things with this second adoption are tires. It isn’t mountain bike with front damper, with very wide tires. Our body, our arms are responsible for taking strokes. There is also traction problem – we must use tires, which will be good in all conditions in which we cycle. And we can’t use MTB tires in gravel or CX bikes, there is not enough space for that. The choice is not easy, but I decided to write small review of tires which I use.

Continue reading “Schwalbe X-One 700x33c Tubeless tyres – small review”

Nginx – Tips & tricks

It’s time to add next and last episode for our Nginx blog series. This time post will not describe specific thing, but few different tips and tricks. You can use them to improve your site performance, add additional monitoring, or just serve some files only for special users. If you have any other ideas, feel free to comment and feedback – I can add your suggestions to this blog post, or create next episode. Fine, go to our configuration files.

Continue reading “Nginx – Tips & tricks”

Vue.js – push data from nested childs to parent

Last time I work with Node and Vue.js. It’s very nice and allows to simplify many, many things. And it’s a lot better – for me – than React and its code mess… One of very nice features from Vue is components. We can separate code into small modules and then import and use them in another as blocks. We can also send some data to them, but direct data binding is only in one way – from parents to childs. According to official documentation, we should use events to notify parents about changes in childs and then make changes. But what about nested childs?

Continue reading “Vue.js – push data from nested childs to parent”