Skip to content

Instantly share code, notes, and snippets.

View vbence86's full-sized avatar
💭
To be hired

Bence Varga vbence86

💭
To be hired
View GitHub Profile

How npm 5+ works with package-lock

Having had hard times understanding how exactly npm processes package-lock.json and at what stages it is being updated, I put a little guide together to sort of reverse engineer in what way the locked dependencies are updated. This is not going to be an exhausting research about every aspects of npm dealing with these locked dependecies, but rather a very quick step-by-step guide that lines up my findings.

Preparations

To get the ball rolling, I prepared a rather simple React boilerplate project to experiment with. It incorporates the very basics needed to generate a "Hello React!" application. This will perfectly make it for our little demonstration.

Let's swiftly take a glimpse through the fundamental project files.

app.js carbon 2

@vbence86
vbence86 / install.sh
Last active March 28, 2017 20:47
Install JavaScript Application that implements Alto Analytics Test
git clone https://github.com/vbence86/alto-analytics-js-test.git
cd alto-analytics-js-test
npm install
npm run build
npm start
@vbence86
vbence86 / readme.md
Last active July 13, 2016 15:47
Release Smash-website to Development
@vbence86
vbence86 / readme.md
Last active June 27, 2016 14:09
Log user into a session

Fetch a session

Babel Endpoint
https://babel-api-0-elb-external.babeltest.photobox.com/v2/Community/Session
Headers
X-Babel-Client: boxtop
Content-Type: application/json
@vbence86
vbence86 / readme.md
Last active June 22, 2016 09:28
Register a member to a Babel Test Environment through Babel REST API

Register a member

  • Send an HTTP POST Request as follows

URL

https://babel-api-0-elb-external.babeltest.photobox.com/v2/Community/Member/New

HTTP Headers

@vbence86
vbence86 / readme.md
Last active June 15, 2016 15:16
Test your localhost against mobile devices

How to test your 'localhost' against a mobile device

Link the remote device to your machine

  • Make sure your machine is connected to the Pbx SWK
  • Connect the target device to the Pbx SWK

Get your remote IP address

  • Open a terminal and type the following
ifconfig

Installing environment dependencies

In order to test the tickets above you have to have the following services up and running locally.

  • Content-Service
  • Eagle Webapp
  • Nginx serving the Boxtop-Front-End resources

Installation steps