NPM – Installing a local module

Just something I do not do on a regular basis, but might come in handy. Source: https://stackoverflow.com/questions/8088795/installing-a-local-module-using-npm Steps: STEP 1. npm install STEP 2. npm run build STEP 3. npm pack Builds a <package-name>-<version>.tar.gz file. STEP 4: Move the file to the consumer project STEP 5: Refer it in your package.json: "dependencies": { "my-package": "file:/./tmp/my-package-1.3.3.tar.gz" … Continue reading NPM – Installing a local module

Initialize a Database Using Hibernate – profile and db based

You want to initialize a database with different data depending on the data source? Should be straight forward: https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto.data-initialization Spring Boot can automatically create the schema (DDL scripts) of your JDBC DataSource or R2DBC ConnectionFactory and initialize it (DML scripts). It loads SQL from the standard root classpath locations: schema.sql and data.sql, respectively. In addition, … Continue reading Initialize a Database Using Hibernate – profile and db based