<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Orléando Dassi on Medium]]></title>
        <description><![CDATA[Stories by Orléando Dassi on Medium]]></description>
        <link>https://medium.com/@dassiorleando?source=rss-99cca12045fe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fDj84KYBL9dpZF3V5ZpTNQ.png</url>
            <title>Stories by Orléando Dassi on Medium</title>
            <link>https://medium.com/@dassiorleando?source=rss-99cca12045fe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:28:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dassiorleando/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Built-in .env Files Support Starting from Node.js v20.6.0]]></title>
            <link>https://dassiorleando.medium.com/built-in-env-files-support-starting-from-node-js-v20-6-0-2e05aca0e2e?source=rss-99cca12045fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e05aca0e2e</guid>
            <category><![CDATA[node-js-tutorial]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[numericaideas]]></category>
            <category><![CDATA[node-js-development]]></category>
            <dc:creator><![CDATA[Orléando Dassi]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 14:53:52 GMT</pubDate>
            <atom:updated>2024-02-03T15:00:54.693Z</atom:updated>
            <content:encoded><![CDATA[<h3>Built-in .env Files Support Starting from Node.js v20.6.0</h3><figure><img alt="Built-in .env Files Support Starting from Node.js v20.6.0 | https://blog.numericaideas.com/nodejs-env-files-support" src="https://cdn-images-1.medium.com/max/1024/0*Dj2Juow7pUGG1A4f.png" /><figcaption>Built-in .env Files Support Starting from Node.js v20.6.0 by Orleando Dassi</figcaption></figure><p>A long-awaited feature amongst NodeJS developers. Finally, starting from Node.js v20.6.0, Node.js supports .env files for configuring environment variables.</p><p>We used to plug in third-party dependencies for that same need, the most notable one is <a href="https://www.npmjs.com/package/dotenv">dotenv</a>.</p><p>Do you prefer the Video format instead? Feel free to watch it by following this <a href="https://youtu.be/gnVtDbl2gpg">link</a>:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FgnVtDbl2gpg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DgnVtDbl2gpg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FgnVtDbl2gpg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/148c9a713d62eb055e2bc2a9ce67db68/href">https://medium.com/media/148c9a713d62eb055e2bc2a9ce67db68/href</a></iframe><p><strong>This article was originally written by “Orleando Dassi” at: </strong><a href="https://numericaideas.com/blog/nodejs-env-files-support/">https://numericaideas.com/blog/nodejs-env-files-support/</a></p><blockquote><em>The YouTube Channels in both English (En) and French (Fr) are now accessible, Feel free to subscribe by clicking </em><a href="https://www.youtube.com/@numericaideas/channels?sub_confirmation=1"><em>here</em></a><em>.</em></blockquote><p><a href="https://www.youtube.com/@numericaideas/channels?sub_confirmation=1">Numerica Ideas</a></p><h3>Built-in Env Files Support</h3><p>Let’s do a very simple test by installing the latest NodeJS version as of today (05th of September 2023) and playing with a basic .env file.</p><p>Feel free to get NodeJS v20.6.0 from the official <a href="https://nodejs.org/en/download/current">download page</a> or by using <a href="https://github.com/nvm-sh/nvm">NVM</a> as we’ll in the following lines.</p><p>Let’s confirm our current NodeJS version by using the command node -v or nvm current:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2398mpeyuS_STdB2.png" /></figure><p>Now, we install NodeJS v20.6.0 using the command nvm install 20.6.0:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wWLmFfmlplhwQ9eV.png" /></figure><p>In case you had it installed already, a simple nvm use 20.6.0 will do. At the end, we can confirm the installed version is present by using the first command as illustrated above.</p><p>We have created a basic env file with a single line as content:</p><pre>ACCESS_KEY=FAKE_ACCESS_KEY</pre><p>Along with a minimalist index.js JS file runnable by NodeJS, here’s its content:</p><pre>console.log(`The access key is: ${process.env.ACCESS_KEY}`)</pre><p>Both files are very basic and are used for illustration purposes only, so we aren’t dealing with a full-fledged NodeJS project but the concept is the same since to access environment variables in NodeJS you’ll follow the pattern: process.env.THE_ENVIRONMENT_VAR_KEY.</p><p>Finally, let’s run the project now, node --env-file=.env index.js:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JYgtdQ2v07XK1rkZ.png" /></figure><p>As you can see, it simply prints the content of the ACCESS_KEY environment variable, without any dependency installed.</p><p>If you are using a version lower than 20.6.0, you’ll get the following message since it wasn’t included in NodeJS yet: node: bad option: --env-file=.env</p><p>Here’s the complete <a href="https://github.com/numerica-ideas/community/tree/master/nodejs/node-support-env-files">source code</a> of this experimentation, and the <a href="https://nodejs.org/en/blog/release/v20.6.0">release notes</a>.</p><p>If you are interested in related content, take a look at the following which explains how to <a href="https://blog.numericaideas.com/quickly-dockerizing-nodejs">Quickly Dockerizing NodeJS Application using docker init command</a> effortlessly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i8leDDrl3BHTbMwi.png" /></figure><p>— — — — — — —</p><p>We have just started our journey to build a network of professionals to grow even more our free knowledge-sharing community that will give you a chance to learn interesting things about topics like cloud computing, software development, and software architectures while keeping the door open to more opportunities.</p><p>Does this speak to you? If YES, feel free to <a href="https://discord.numericaideas.com/">Join our Discord Server</a> to stay in touch with the community and be part of independently organized events.</p><p>— — — — — — —</p><h3>Conclusion</h3><p>In this article, we have seen how NodeJS +v20.6.0 supports .env files out of the box without any third-party dependency.</p><p>Thanks for reading this article. Like, recommend, and share if you enjoyed it. Follow us on <a href="https://www.facebook.com/numericaideas">Facebook</a>, <a href="https://twitter.com/numericaideas">Twitter</a>, and <a href="https://www.linkedin.com/company/numericaideas">LinkedIn</a> for more content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e05aca0e2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dockerize Spring Boot and MySQL with Docker Compose]]></title>
            <link>https://dassiorleando.medium.com/docker-compose-springboot-mysql-41266290eef8?source=rss-99cca12045fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/41266290eef8</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[solutions-architecture]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Orléando Dassi]]></dc:creator>
            <pubDate>Mon, 21 Aug 2023 17:10:06 GMT</pubDate>
            <atom:updated>2024-02-03T14:59:31.197Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Dockerize Spring Boot and MySQL with Docker Compose" src="https://cdn-images-1.medium.com/max/1024/1*SnAHIB46NPQ0djxzpV7rug.png" /></figure><p>Docker has revolutionized application deployment by enabling developers to package applications and their dependencies into portable containers. In this comprehensive guide, we’ll explore how to dockerize a <strong>Spring Boot</strong> application with <strong>MySQL</strong>, leveraging the power of <strong>Docker</strong> and <strong>Docker Compose</strong>. By containerizing your Spring Boot application, you can achieve easy deployment, improved portability, scalability, and version control.</p><p><strong>This article was originally written by “Orleando Dassi” at: </strong><a href="https://numericaideas.com/blog/docker-compose-springboot-mysql/">https://numericaideas.com/blog/docker-compose-springboot-mysql/</a></p><p>The <strong>YouTube Channels</strong> in both English (En) and French (Fr) are now accessible, feel free to subscribe by clicking <a href="https://www.youtube.com/@numericaideas/channels?sub_confirmation=1">here</a>.</p><p><a href="https://www.youtube.com/@numericaideas/channels?sub_confirmation=1">Numerica Ideas</a></p><h3>What is Docker?</h3><p><strong>Docker</strong> is an open-source platform that simplifies application deployment by packaging applications and their dependencies into containers. Containers provide a lightweight, isolated environment that can run consistently across different environments which greatly improves the development and deployment experiences.</p><h3>Why Dockerize a Spring Boot Application with MySQL?</h3><p>Dockerizing a Spring Boot application with MySQL offers several advantages:</p><ul><li><strong>Portability</strong>: Docker containers can be deployed on any machine running Docker, eliminating environment-specific issues.</li><li><strong>Isolation</strong>: Containers provide an isolated environment, ensuring consistent and reliable application execution.</li><li><strong>Scalability</strong>: Docker containers can be easily scaled horizontally to handle increased demand.</li><li><strong>Versioning</strong>: Docker images can be versioned, enabling easy management and rollback to previous application versions.</li></ul><h3>Prerequisites</h3><p>To follow this guide, ensure you have the following prerequisites:</p><ul><li>Docker installed on your machine, <a href="https://docs.docker.com/get-docker/">this guide</a> could help.</li><li>Java Development Kit (JDK) 17 installed, recent versions could work.</li><li>Maven or Gradle build tool installed.</li></ul><h3>Create a Spring Boot Application</h3><p>Before proceeding, let’s create a basic Spring Boot App with the latest stable release at the time of writing, which is version <strong>3.1.2</strong>.</p><p>It involves accessing the initializer service at <a href="https://start.spring.io/">https://start.spring.io</a>, providing some basic details in regard to the App, selecting the required dependencies then hitting on the <strong>GENERATE</strong> button to have the basic structure of the project as follows:</p><figure><img alt="Spring Boot Initializer" src="https://cdn-images-1.medium.com/max/1024/0*Y3Xwx-wWCIHWEBSt.png" /></figure><p>You can quickly determine the following dependencies that come packaged in the <strong>Maven</strong> project:</p><ul><li><strong>Spring Data JPA</strong>: Persist data in SQL stores with Java Persistence API using Spring Data and Hibernate.</li><li><strong>Spring Web</strong>: Build web, including RESTful, applications using Spring MVC. Uses Apache Tomcat as the default embedded container.</li><li><strong>MySQL Driver</strong>: MySQL JDBC driver.</li></ul><p>Open the generated project in your favorite IDE or editor (I’m mainly using IntelliJ IDEA and VsCode), from there you can tweak it a bit to have some entities, controllers, and business logic.</p><p>Hosted on GitHub, here’s the <a href="https://github.com/numerica-ideas/community/tree/master/docker/docker-compose-springboot-mysql">source code</a> of the Spring Boot application that we’ll be using to set up Docker along with a MySQL database.</p><p>The <a href="https://github.com/numerica-ideas/community/blob/master/docker/docker-compose-springboot-mysql/src/main/resources/application.properties"><strong>application.properties</strong></a> file holds some App configurations, it’s not uncommon to see sensitive credentials in it, here’s its content:</p><pre># Server port<br>server.port=8090<br><br># Datasource connection<br>spring.datasource.platform=mysql<br>spring.datasource.initialization-mode=always<br>spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect<br><br># Hibernate<br>spring.jpa.hibernate.ddl-auto=update<br>spring.jpa.hibernate.show-sql=true<br><br># Logging<br>logging.level.org.springframework=ERROR<br>logging.level.com.numericaideas=DEBUG<br>logging.level.org.hibernate.SQL=DEBUG<br>logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE</pre><p>Let’s build the App to make sure it compiles as expected, the following command must be run from the project root folder:</p><pre>./mvnw clean install -DskipTests</pre><p>At the end of the execution, the <strong>Maven</strong> build output should look like this:</p><figure><img alt="Maven build" src="https://cdn-images-1.medium.com/max/1024/0*Uwv3Zo36N2XWy7p0.png" /></figure><p>Other <strong>Bash</strong> scripts are available within the project for convenience:</p><ul><li>build.sh: to build the project.</li><li>up.sh: to start the project using <strong>Docker Compose</strong>.</li><li>down.sh: to shut everything down.</li></ul><p>For our demo, the port in use is <strong>8090</strong> and we have implemented the CRUD operations for the <strong>User</strong> entity as well as a <strong>Ping</strong> endpoint, we won’t go deeper on that since it’s out of scope and you can follow the next sections of this guide with an existing Spring Boot (Maven) project too.</p><h3>Create Docker Image for Spring Boot Application</h3><p>The <a href="https://github.com/numerica-ideas/community/blob/master/docker/docker-compose-springboot-mysql/Dockerfile">Dockerfile</a> should be provided to build an image of the Spring Boot Application, it contains the following lines:</p><pre># Use a base image with Java 17<br>FROM openjdk:17<br><br># Copy the JAR package into the image<br>ARG JAR_FILE=target/*.jar<br>COPY ${JAR_FILE} app.jar<br><br># Expose the application port<br>EXPOSE 8090<br><br># Run the App<br>ENTRYPOINT [&quot;java&quot;, &quot;-jar&quot;, &quot;/app.jar&quot;]</pre><p>It’s straightforward, the Dockerfile uses an image based on <strong>Java 17</strong>, it copies into the image the executable <strong>JAR</strong> file that resulted from the build in the previous step, exposes the <strong>port</strong> the App is running on, then provides the <strong>entry point</strong> which is the bash command to run at the end to start the container.</p><p>By building your image with the command docker build ., a successful output should be similar to the next image:</p><figure><img alt="Build Spring Boot Docker image" src="https://cdn-images-1.medium.com/max/1024/0*6zoAFvySTCvVAYAJ.png" /></figure><p>By this stage, we have the App image and since we’ll use an official MySQL Docker image, we can manually spin up both components and link them together by using the database credentials to run the App, but to make the process easier we’ll link their deployments together by using <strong>Docker Compose</strong> in the next section.</p><p><a href="https://embeds.beehiiv.com/6e19a1f8-8d19-4ec9-9ed7-ca858ff7ca76">https://embeds.beehiiv.com/6e19a1f8-8d19-4ec9-9ed7-ca858ff7ca76</a></p><h3>Docker Compose Spring Boot and MySQL</h3><p>Docker Compose simplifies the orchestration of multi-container applications. Create a file named docker-compose.yml in your project directory and add the following configuration:</p><pre>version: &#39;3.7&#39;<br>services:<br>  app:<br>    build:<br>      context: .<br>      dockerfile: Dockerfile<br>    ports:<br>      - 8090:8090<br>    depends_on:<br>      mysqldb:<br>        condition: service_healthy<br>    environment:<br>      - SPRING_DATASOURCE_URL=jdbc:mysql://mysqldb:3306/${MYSQL_DATABASE}<br>      - SPRING_DATASOURCE_USERNAME=root<br>      - SPRING_DATASOURCE_PASSWORD=${MYSQL_PASSWORD}<br>    networks:<br>      - springboot-mysql-network<br>  mysqldb:<br>    image: mysql:8.0.33<br>    ports:<br>      - 3306:3306<br>    environment:<br>      - MYSQL_DATABASE=${MYSQL_DATABASE}<br>      - MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}<br>    volumes:<br>      - mysql-data:/var/lib/mysql<br>    networks:<br>      - springboot-mysql-network<br>    healthcheck:<br>      test: [&quot;CMD&quot;, &quot;mysqladmin&quot; ,&quot;ping&quot;, &quot;-h&quot;, &quot;localhost&quot;]<br>      retries: 10<br>      interval: 3s<br>      timeout: 30s<br>volumes:<br>  mysql-data:<br>networks:<br>  springboot-mysql-network:<br>    name: springboot-mysql-network</pre><p>This Docker Compose configuration defines two services: app for the <strong>Spring Boot Application</strong> and mysqldb for the <strong>MySQL database</strong>. The app service builds the image based on the <a href="https://github.com/numerica-ideas/community/blob/master/docker/docker-compose-springboot-mysql/Dockerfile">Dockerfile</a> in the project&#39;s root directory. The mysqldb service uses the official <strong>MySQL</strong> image and sets the environment variables for the database configuration. The depends_on attribute ensures that the Spring Boot application starts after the MySQL database in order to guarantee dependency ordering. Finally, the healthcheck makes sure the MySQL service is ready to accept connections before running the App.</p><p>For the App to connect itself to the MySQL database, as an enhanced security measure, we provided the database credentials as environment variables via the services’ environment attributes so these are textually hidden from the project source code:</p><ul><li><strong>MYSQL_DATABASE</strong>: The database name.</li><li><strong>MYSQL_PASSWORD</strong>: The database root’s password, we use the root user account for simplicity only.</li></ul><p>The environment attributes present in the <strong>app</strong> service are provided as environment variables to the App container at run time, we are talking about:</p><ul><li>SPRING_DATASOURCE_URL</li><li>SPRING_DATASOURCE_USERNAME</li><li>SPRING_DATASOURCE_PASSWORD</li></ul><p>Spring Boot automatically assigns these variables to the related <strong>application.properties</strong> configurations listed below:</p><ul><li>spring.datasource.url</li><li>spring.datasource.username</li><li>spring.datasource.password</li></ul><p>Meaning we don’t have to provide these manually into the <strong>application.properties</strong> file, <a href="https://docs.spring.io/spring-cloud-skipper/docs/1.0.0.BUILD-SNAPSHOT/reference/html/skipper-database-configuration.html">read more here</a>.</p><h3>Run the Dockerized Application</h3><p>To run the App via <strong>Docker Compose</strong>, open a terminal, navigate to the project’s root directory, and execute the following command in which we provide the <strong>environment variables</strong> directly:</p><pre>MYSQL_DATABASE=mydatabase MYSQL_PASSWORD=rootpassword docker-compose up</pre><p>In case you would like to provide the environment variables from a hidden .env file, feel free to create it from the .env.sample file and put it close to the docker-compose.yml within the project.</p><p>This being done, the command to run will change a bit to the following:</p><pre>docker-compose up</pre><p>Docker Compose will build the Spring Boot and MySQL images, create the containers, and start them. You’ll see logs from both the application and the database. To stop the containers, press Ctrl+C.</p><p>Using <strong>Docker Desktop</strong> enables you to view a nice summary of your Docker state in which we can see our running containers as illustrated below:</p><figure><img alt="Running containers on Docker Desktop" src="https://cdn-images-1.medium.com/max/1024/0*YflOUPZdmq3Yr0k9.png" /></figure><p>The complete source code of the project is available on <a href="https://github.com/numerica-ideas/community/tree/master/docker/docker-compose-springboot-mysql">GitHub</a>.</p><p>Open POSTMAN and <strong>create</strong> a POST request to the URL localhost:8090/api/users with a random user object to be persisted in the DB:</p><figure><img alt="Test API: create a user" src="https://cdn-images-1.medium.com/max/1024/0*ieslsN_m4RmwaP09.png" /></figure><p>Let’s <strong>list all users</strong> which includes the one we just created:</p><figure><img alt="Test API: list all users" src="https://cdn-images-1.medium.com/max/1024/0*3kiZxi4HrtkjvmWY.png" /></figure><p>A <strong>ping</strong> endpoint is also available:</p><figure><img alt="Test API: ping endpoint" src="https://cdn-images-1.medium.com/max/1024/0*MlLdRKzg0ukVzxSM.png" /></figure><p>If you are interested in related content, take a look at the following which explains how to <a href="https://blog.numericaideas.com/quickly-dockerizing-nodejs">Quickly Dockerizing NodeJS Application using docker init command</a>:</p><p><a href="https://blog.numericaideas.com/quickly-dockerizing-nodejs">Docker Init: Quickly Dockerizing NodeJS Application</a></p><p>— — — — — — —</p><p>We have just started our journey to build a network of professionals to grow even more our free knowledge-sharing community that’ll give you a chance to learn interesting things about topics like cloud computing, software development, and software architectures while keeping the door open to more opportunities.</p><p>Does this speak to you? If <strong>YES</strong>, feel free to <a href="https://discord.numericaideas.com/">Join our Discord Server</a> to stay in touch with the community and be part of independently organized events.</p><p>— — — — — — —</p><h3>Conclusion</h3><p>Dockerizing a Spring Boot application with MySQL using Docker and Docker Compose simplifies the deployment process, improves portability, and enables scalability. By following the steps outlined in this guide, you can package your Spring Boot application and MySQL database into separate containers and deploy them as a cohesive application stack. With Docker, you can achieve consistent application execution across different environments, easily scale your application, and simplify version control. Docker Compose streamlines the management of multi-container applications, allowing you to define, configure, and deploy complex systems effortlessly.</p><p>Thanks for reading this article. Like, recommend, and share if you enjoyed it. Follow us on <a href="https://www.facebook.com/numericaideas">Facebook</a>, <a href="https://twitter.com/numericaideas">Twitter</a>, and <a href="https://www.linkedin.com/company/numericaideas">LinkedIn</a> for more content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41266290eef8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Published my First NPM Package in 1h]]></title>
            <link>https://dassiorleando.medium.com/how-i-published-my-first-npm-package-in-1h-525978cedcd1?source=rss-99cca12045fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/525978cedcd1</guid>
            <category><![CDATA[dassiorleando]]></category>
            <category><![CDATA[paykickstart]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[package-manager]]></category>
            <dc:creator><![CDATA[Orléando Dassi]]></dc:creator>
            <pubDate>Sat, 01 May 2021 19:55:53 GMT</pubDate>
            <atom:updated>2024-01-08T00:17:02.679Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*sXyIyGddxNCGrqMK.png" /></figure><p>Open source has been a game-changer for us all, it’s even crucial for software developers. I mean, none of us can say he never used open-sourced projects.</p><p>Sometimes we feel like we can add our piece to the puzzle but for some reason, we don’t, I’ve been doing little open source since the start of my career, but today I wanted to create my own <strong>NPM</strong> package … if you read this article maybe you want to follow that route too.</p><p>Let me tell you something, it’s easy to create an NPM package, but not easy to create a helpful package, the one that will be used by hundreds of professionals around the globe.</p><p><strong>I would advise you not to stay focused on creating something no matter what, but rather convert problems you solve daily into packages others can use without spending hours solving the same things.</strong></p><p>We all know how lazy we Software developers are, I’m not an exception, so I’ll use your useful package too 🤓</p><p><strong>Originally posted</strong> at <a href="https://www.dassiorleando.xyz/how-i-published-my-first-npm-package-in-1h">https://www.dassiorleando.xyz/how-i-published-my-first-npm-package-in-1h</a></p><h3>My First Package</h3><p>Basically, I created my first NPM package, it had 30 installations on the first day, 70 installations 48 hours after its inception, 108 downloads three days later, and now it’s <a href="https://npm-stat.com/charts.html?package=paykickstart-ipn-validator&amp;from=2015-01-07&amp;to=2024-01-06">more than 1500</a> according to npm-stat:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TjTktkvUEdvuLwN1_2AgBA.png" /></figure><p>Quite motivating to do more, not only because it’s used by other developers, but primarily because I depend on open source myself.</p><p>It’s called <a href="https://www.npmjs.com/package/paykickstart-ipn-validator"><strong>paykickstart-ipn-validator</strong></a>, its only and unique purpose is to validate incoming IPN notifications got from PayKickStart.</p><p>To better the funnel of your App sold via a third-party service you often need to do further actions once <strong>payment/refund/subscribe/unsubscribe</strong> operations are made via your sales/dashboard/landing pages, doing this without confirming the validity of the notification will fail your workflow as not only the intended party can send requests to your server (IPN receiver/controller).</p><p>You can install it just by hitting this:</p><pre>$ npm install paykickstart-ipn-validator --save</pre><p>It’s open-source, you can grab it over on <a href="https://github.com/dassiorleando/paykickstart-ipn-validator">GitHub</a>.</p><h3>Publishing Steps</h3><p>Here are the steps I used to have my package up and running in no more than 1 hour, assuming you have your code built already on your computer.</p><ol><li>Create a <strong>git repo </strong>for your package if it’s open-source, let’s note that private NPM packages can be published too.</li><li>Sign up at <a href="http://npmjs.com/">npmjs.com</a>.</li><li>There are some required and important things to do in your repo to look as <strong>professional</strong> as the others you used to pay attention to. I would advise using this <a href="https://github.com/sindresorhus/node-module-boilerplate">template</a> to have all this metadata defined, you then need to update with your details.</li><li>[Optional] Setting up a <strong>Travis</strong> build so that it triggers your test anytime you commit/merge on the master branch, it’s good to have the build status of your package anytime so that we’ll feel safe using a particular working version (any Travis alternative will do)</li><li>From your package root folder in the command line, hit <strong>npm login</strong> to sign in using your NPM account then <strong>npm publish</strong> to send all to the NPM registry, yep it’s done 😉</li></ol><p><strong>Note</strong>: To better understand the structure of the package.json file you can read <a href="https://docs.npmjs.com/creating-a-package-json-file">the official guide</a>.</p><p><strong>Resource</strong>: <a href="https://docs.npmjs.com/creating-node-js-modules">https://docs.npmjs.com/creating-node-js-modules</a></p><h3>Conclusion</h3><p>In this short tutorial, we highlighted the basic steps needed to publish an NPM package to the NPM registry, no magic, no extra thing, straight to the point and I hope it’s easy to follow by all developers regardless of their level to do the same.</p><h3>Thanks for reading this post, recommend and share if you enjoyed it.</h3><h3>Follow me on <a href="https://twitter.com/dassiorleando">Twitter</a> and <a href="https://www.linkedin.com/in/dassi-orleando-257b04ab/">LinkedIn</a>, and visit my blog.</h3><p><strong>Cheers!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=525978cedcd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Safely toString a Java object]]></title>
            <link>https://medium.com/hackernoon/safely-tostring-a-java-object-a3d6ea3c404?source=rss-99cca12045fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3d6ea3c404</guid>
            <category><![CDATA[npe]]></category>
            <category><![CDATA[nullpointerexception]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[tostring-a-java-object]]></category>
            <category><![CDATA[tostring]]></category>
            <dc:creator><![CDATA[Orléando Dassi]]></dc:creator>
            <pubDate>Tue, 03 Apr 2018 10:42:12 GMT</pubDate>
            <atom:updated>2023-12-31T23:20:15.023Z</atom:updated>
            <content:encoded><![CDATA[<h4>Avoiding NPE</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T-SH4zH9hhBW7nZacpJ0KA.png" /><figcaption>Safely toString a Java object</figcaption></figure><blockquote>This article was originally posted <a href="http://www.dassiorleando.xyz/safely-tostring-a-java-object">here</a>.</blockquote><h3>Overview</h3><p>In this little article, we will see how to get the string representation (tostring) of an object cautiously, which means avoiding NullPointerException.</p><h3>Context</h3><p>Getting the <strong>String</strong> representation of a <a href="https://hackernoon.com/tagged/java">Java</a> object is something we often do for logging, debugging, or simply for overview purposes.</p><p>For a null object we will be directed to a NullPointerException, as the toString is using the fields of the object.</p><p>A catch up of this without even checking for nullity before is just by using the <strong>String.valueOf(object)</strong>method instead of directly using object.toString().</p><p>Here is the content of String.valueOf generated by IntelliJ:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1a6dc11762aa71a127e2eafeb8cfa62a/href">https://medium.com/media/1a6dc11762aa71a127e2eafeb8cfa62a/href</a></iframe><p>Where it’s clearly described how the null catches on before the toString.</p><p>This function is also wrapped up into the Objects utility function accessible via the: <strong>Objects.toString(Object o)</strong>, more readable.</p><h3>A real-life Example</h3><p>Let’s suppose your application logic, among others, is using two models with some properties where one depends on the other:</p><ul><li>ObjectB: propB</li><li>ObjectA: propA, objectB1 and objectB2</li></ul><p>Considering that the dependency objectB2 is optional somewhere in your code, you would like to toString each property of ObjectA(even the optional one).</p><p>Here is an approach without the need of checking for nullity:</p><p><strong>ObjectB</strong> class:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/15f83e40fa43541b85731ad92146c800/href">https://medium.com/media/15f83e40fa43541b85731ad92146c800/href</a></iframe><p><strong>ObjectA</strong> class has objectB2 as an optional property:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/388f3bd763d195c0064e0a702b171966/href">https://medium.com/media/388f3bd763d195c0064e0a702b171966/href</a></iframe><p>The following <strong>JUnit</strong> test illustrates how we now proceed to come out with a <a href="https://hackernoon.com/tagged/safe">safe</a> string representation of ObjectA’s instances:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6e9c8287fe7f216324ceb9b92d08af7e/href">https://medium.com/media/6e9c8287fe7f216324ceb9b92d08af7e/href</a></iframe><p>The printed string of our ObjectA into the console is:</p><pre>ObjectA{propA=’Fake propA’, objectB1=ObjectB{propB=’Fake propB’}, objectB2=null}</pre><p>More usages of the <strong>Objects</strong> class can be found on this <a href="http://www.dassiorleando.xyz/jdk-7-objects-class-check-nullity-throw-npe">page</a>.</p><h3>Conclusion</h3><p>To sum up, we have seen here a proper way to safely toString an object with embed properties.</p><p>As usual, the code is available in the <a href="https://github.com/dassiorleando/jse">GitHub repo</a>.</p><h3>Thanks for reading this post, recommend and share if you enjoyed it.</h3><h3>Follow me on <a href="https://twitter.com/dassiorleando">Twitter</a> and <a href="https://www.linkedin.com/in/dassi-orleando-257b04ab/">LinkedIn</a>, and visit my blog.</h3><p><strong>Cheers!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3d6ea3c404" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/safely-tostring-a-java-object-a3d6ea3c404">Safely toString a Java object</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why using AngularJs’s global objects instead of native ?]]></title>
            <link>https://medium.com/hackernoon/angularjss-global-objects-instead-of-native-c360f014f96b?source=rss-99cca12045fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/c360f014f96b</guid>
            <category><![CDATA[angularjs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Orléando Dassi]]></dc:creator>
            <pubDate>Wed, 07 Mar 2018 05:21:20 GMT</pubDate>
            <atom:updated>2023-12-31T23:22:27.382Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESWyGAirVZvjWMiBfOCfMQ.png" /></figure><blockquote>More info on <a href="https://hackernoon.com/tagged/angularjs">AngularJs</a> wrappers. This article was originally posted <a href="http://www.dassiorleando.xyz/angularjs-global-objects-instead-native">here</a>. The full source code is available <a href="https://github.com/dassiorleando/angular-timeout-digest">over on GitHub</a>.</blockquote><h3>Overview</h3><p><a href="https://docs.angularjs.org/api/ng/service/$timeout">AngularJs</a> is one of the widely used open-source front-end frameworks because of its good architecture in place, its extensibility, a lot of interesting features, and the big community too.</p><p>In this short article, we’re going to showcase a simple example of why it’s sometimes better to use AngularJS’s inbuilt global objects and services instead of native ones.</p><h3>Why use Angular Wrappers?</h3><p>AngularJs applications are benefiting from some great functionalities, instead of just using those necessary for frontend architecture, as an AngularJs lover I strongly advise also taking advantage of the other&#39;s global objects and services.</p><p>The case to show as an example is the famous <strong>setTimeout</strong> function of the <a href="https://hackernoon.com/tagged/javascript">javascript</a> window object which has its <strong>$timeout</strong> corresponding service in AngularJs world.</p><p>In simple word, AngularJs wrappers and services are already built to synchronized with AngularJs application, so can be used without any further tricks.</p><h3>Timeout case</h3><p><strong>setTimeout</strong> is part of the window object, helpful to execute a function or evaluating an expression one time after a certain delay in milliseconds.</p><p>Let’s setting up a basic AngularJS application with a controller:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba201d003098ea3e2f4a4647f0965801/href">https://medium.com/media/ba201d003098ea3e2f4a4647f0965801/href</a></iframe><p>In this example, after 2 seconds the <strong>firstMessage </strong>will be updated but the <strong>secondMessage</strong> not, as shown on the following page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k_d2s39n4JJshSLa9kwDcw.png" /></figure><h3>setTimeout:</h3><p>Here is invoked with two parameters, the function we would like to call and the delay for it to happen.</p><p>When we are using it into an AngularJs application we also need to apply the eventual scope changes to the angular digest, because the default timeout runs outside of the AngularJs life-cycle that also means our bi-directional binding will not render the update.</p><p>That is why it’s needed here to refresh the AngularJs scope with the call of <strong>$rootScope.$apply() </strong>or <strong>$rootScope.$applyAsync()</strong>.</p><p><strong>$apply </strong>and <strong>$applyAsync </strong>serve the same purpose but with a delay difference on the second one.</p><h3>$timeout:</h3><p>Almost the same syntax as the previous but there are more parameters here that can be pass to its call.</p><p>For example, we can also decide to call it outside of the life cycle:</p><pre>$timeout(<strong>function</strong>() {</pre><pre>    $scope.firstMessage = &#39;First message updated&#39;;</pre><pre>    alert($scope.firstMessage);</pre><pre>}, 2000, <strong>false</strong>);</pre><p>Here we see that one more parameter can be added to this service, it’s a boolean to say if yes or no we want the <strong>apply</strong> to follow our function call after 2 seconds.</p><p><strong>In simple word, call it with false as the third parameters will call our function outside of AngularJS framework.</strong></p><p><strong>Note</strong>: By default this third parameter is true.</p><p>The documentation stated it clearly <a href="https://docs.angularjs.org/api/ng/service/$timeout">here</a>.</p><h3>Others wrappers and utilities functions</h3><p>There are some others angular wrapper services for corresponding Javascript object that can be interesting to use instead of the native one, sometimes because of the simplicity/syntax or because of the effect as the one just described up there.</p><h3>Functions</h3><p>Let’s see another example, where the intent is to know if a variable hasn’t been declared or has the value <strong>undefined</strong>.</p><p>Here I fill more confident to use:</p><pre><strong>if</strong>(angular.isDefined(variable)) {</pre><pre>}</pre><p>Instead of:</p><pre><strong>if</strong>(<strong>typeof</strong> variable != &#39;undefined&#39;) {</pre><pre>}</pre><p>Others that may be good for you:</p><ul><li><strong>angular.isDate</strong>: to know if a variable is a date</li><li><strong>angular.isArray</strong>: figure out if it’s an array</li><li><strong>angular.copy</strong>: make a deep copy an object</li><li><strong>angular.isObject</strong>: test an object type</li><li><strong>angular.toJson</strong>: serialize an object into JSON</li><li><strong>angular.fromJson</strong>: deserialize a JSON string to an object</li></ul><p>Others are listed <a href="https://docs.angularjs.org/api/ng/function">here</a>.</p><h3>Services</h3><p>Some AngularJs services:</p><ul><li><strong>$document</strong>: wrapper for the browser window.document object</li><li><strong>$interval</strong> for window.setInterval, the repeated version of setTimeout</li><li><strong>$http</strong> to make remote HTTP call using XMLHttpRequest object or via JSONP</li><li><strong>$log</strong> for logging into the browser’s console</li></ul><p>More services are available in the <a href="https://docs.angularjs.org/api/ng/service">documentation</a>.</p><h3>Conclusion</h3><p>To resume, in this article we have seen why sometimes it’s better to use AngularJs wrappers instead of native implementations while highlighted the timeout case.</p><p>The full source code is available <a href="https://github.com/dassiorleando/angular-timeout-digest">over on GitHub</a>.</p><h3>Thanks for reading this post, recommend and share if you enjoyed it.</h3><h3>Follow me on <a href="https://twitter.com/dassiorleando">Twitter</a> and <a href="https://www.linkedin.com/in/dassi-orleando-257b04ab/">LinkedIn</a>, and visit my blog.</h3><p><strong>Cheers!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c360f014f96b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/angularjss-global-objects-instead-of-native-c360f014f96b">Why using AngularJs’s global objects instead of native ?</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a real-time app with MEAN2, angular-cli and socket.io]]></title>
            <link>https://medium.com/hackernoon/build-real-time-app-with-mean2-angular-cli-and-socket-io-cedf1dc02fec?source=rss-99cca12045fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/cedf1dc02fec</guid>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[socketio]]></category>
            <category><![CDATA[angular-cli]]></category>
            <category><![CDATA[angular-5]]></category>
            <dc:creator><![CDATA[Orléando Dassi]]></dc:creator>
            <pubDate>Thu, 01 Jun 2017 12:57:43 GMT</pubDate>
            <atom:updated>2023-12-31T23:22:58.332Z</atom:updated>
            <content:encoded><![CDATA[<h4>A small starter app built with MEAN2 and socket.io</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gfCLyr3UYR5aKjAOjQ1Kog.png" /></figure><p><em>This article was originally posted </em><a href="http://www.dassiorleando.xyz/build-real-time-app-mean2-angular-cli-socket-io"><em>here</em></a></p><p><strong>The </strong><a href="https://github.com/dassiorleando/gistology"><strong>source code</strong></a><strong> has been updated to use Angular 5.</strong></p><h3><strong>Summary</strong></h3><p>Build a simple real-time application that you can use as a starter to do what you want with <strong>MEAN2(MongoDB, Express, Angular2 &amp; NodeJS)</strong>, within the project will also be <a href="http://socket.io/"><strong>Socket.io</strong></a>, <strong>Typescript and Angular-material2.</strong></p><p>After having worked with <a href="https://hackernoon.com/tagged/angular2">Angular2</a> and socket.io I faced some challenges that motivated me to build a simple starter project that I will reuse every times if need be.</p><p>I suppose that you already know the power of <strong>Ajax</strong> to build <strong>SPA</strong> application. But now there is a new protocol, not attached to the browser and it’s called <strong>socket</strong>.</p><p><strong>Notes</strong></p><ul><li>This is a starter project for those who need real time in a <strong>MEAN2</strong> app.</li><li>This is not a tutorial to teach you the MEAN2 stack or Socket, but to show you a way to build a working realtime app with ease</li><li>CRUD requests are made with rest</li><li>For the moment, only notifications happen with <a href="http://socket.io/">socket.io</a></li><li>Source code: <a href="https://github.com/dassiorleando/gistology">https://github.com/dassiorleando/gistology</a></li></ul><p>Let’s call it <strong>gistology: </strong><a href="https://gistology.herokuapp.com/">https://gistology.herokuapp.com</a> :)</p><h3><strong>Recommandations</strong></h3><p>→ Have <a href="https://hackernoon.com/tagged/nodejs">NodeJs</a> and npm on your system</p><p>→ To use this article I recommend you to follow <a href="https://github.com/dassiorleando/gistology/blob/master/README.md">Readme</a> instructions</p><h3><strong>Demo</strong></h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FivvVqm-xkJQ%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DivvVqm-xkJQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FivvVqm-xkJQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4479e0916c2f10ea4e9c1326effa04d5/href">https://medium.com/media/4479e0916c2f10ea4e9c1326effa04d5/href</a></iframe><h3><strong>What is used</strong></h3><ul><li><strong>NodeJS:</strong> Open-source JavaScript runtime environment built on Chrome’s V8 JavaScript engine</li><li><strong>MongoDB</strong>: Database Management System</li><li><strong>Express:</strong> Web framework used in nodes app for rest requests</li><li><strong>Angular2</strong>: The successor of Angular1 that makes the code more easier to understand, brings a lot of good functionalities in Angular apps, simplified DI, component driven apps, enriched the interaction with the DOM and benefit of Typescript. Then Angular2 is not an MVC framework, but a component-based framework(<strong>@Component</strong>).</li><li><strong>Angular CLI</strong>: Command line tool that helps to create an Angular2 project with a well structured architecture.</li><li><strong>Angular Material 2: </strong>Use Angular-material in Angular2 application.</li><li><strong>Typescript</strong>: is a superset of Javascript that allows us to define new types, declaring typed variables.</li><li><strong>Angular2-toster: </strong>For toast messages(info, success, warning and error notifications).</li><li><strong>angular-flex-layout</strong>: Better design the layouts(row and column) of our pages.</li><li><a href="http://socket.io/"><strong>Socket.io</strong></a><strong>(client &amp; server): </strong>Js lib used to make sockets connections, send and receive messages via events with a simple syntaxe. We use it to connect multiple clients together and let them exchange messages(events are created and handled).</li><li><strong>Webpack: </strong>A module bundler for modern javascript application, this means webpack takes modules with dependencies and emits static assets representing those modules. Here it builds all into the directory <strong>dist </strong>as defined by angular-cli defaults options.</li></ul><h3><strong>Client Side</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mKEn0AvgF4zJMG4npn3S3A.png" /></figure><p>→ <strong>Start App Architecture: Angular CLI</strong></p><p>First you will need to install AngularCLI, to get started here is the <a href="https://angular.io/docs/ts/latest/cli-quickstart.html">link</a>.</p><ul><li><strong>Install the tool: </strong><em>npm install -g @angular/cli</em></li><li><strong>Create the project: </strong><em>ng new gistology</em></li><li><strong>Serve the app: </strong><em>ng serve (</em>within the root folder), this command also watches your files for any change to reload the browser.</li><li>More commands: <strong>ng build</strong>, <strong>ng test</strong>, <strong>ng lint</strong> and <strong>ng e2e</strong>.</li></ul><p>Now via your browser access the app here:<strong> </strong><a href="http://localhost:4200/">http://localhost:4200</a></p><p>→ <strong>Generate client side components to manage gists:</strong></p><p>Now we will still use the power of angular-cli to come out with a new component that will help us to manage gists, with this command:</p><pre><strong>ng g component gist</strong></pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*2xZLslDadHOUapiTws3hnQ.png" /></figure><p>→ <strong>Include Angular-material2</strong></p><p>Click <a href="https://material.angular.io/guide/getting-started">here</a> to get all steps.</p><ul><li><strong>npm install — save @angular/material</strong></li><li><strong>Imports and install</strong></li></ul><p>Don’t forget to also install and load @angular/animation to enable some material components to work normally.</p><p>→ <strong>Include </strong><a href="https://github.com/angular/flex-layout/wiki/Implementation"><strong>Angular-flexLayout</strong></a></p><ul><li>npm install — save @angular/flex-layout</li><li>import {FlexLayoutModule} from “@angular/flex-layout”; in the <strong>app.module.ts</strong></li></ul><p>→ <strong>Design the home page: angular material card and list</strong></p><ul><li><strong>app.component.css</strong></li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ee2c80fedba5c353bf970ee386203bd/href">https://medium.com/media/5ee2c80fedba5c353bf970ee386203bd/href</a></iframe><ul><li><strong>app.component.html</strong></li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd349c663237f265f4887a7b4b9a3418/href">https://medium.com/media/dd349c663237f265f4887a7b4b9a3418/href</a></iframe><p>→ Include <strong>Angular2-toaster </strong>for notifications</p><ul><li>Install it via npm:</li></ul><p><strong>npm install — save angular2-toaster</strong></p><ul><li>Include his css too in the main css file(style.css):</li></ul><p><strong>@import ‘~angular2-toaster/toaster.css’;</strong></p><ul><li><strong>Import and Register ToasterModule f</strong>rom <strong>“angular2-toaster”</strong> in the app module</li><li>Define the Toast container(&lt;toaster-container&gt;&lt;/toaster-container&gt;) in app.component.html</li><li>Finally import the ToastService and you will be allowed to toast with success, info, warning and error functions.</li><li>Create <strong>Gist client model</strong>: <strong>./src/app/gist/gist.model.ts</strong></li></ul><pre><strong>/**<br>* Model for gist<br>*/<br>export class Gist{</strong></pre><pre><strong>  constructor(public title, public description, public technologies, public link)   <br>  {<br> <br>  }</strong></pre><pre><strong>}</strong></pre><p>→ Include <a href="http://socket.io/"><strong>socket.io</strong></a><strong>-client</strong></p><ul><li>npm install <a href="http://socket.io/">socket.io</a>-client — save</li><li>npm install — save-dev @types/socket.io-client</li><li>npm install — save @types/socket.io-client — only=dev (the typings of the client socket.io)</li></ul><p>Now we need to add this @types in ./src/tsconfig.app.json and ./src/tsconfig.spec.json in the array <strong>types.</strong></p><p><strong>FILE </strong>tsconfig.app.json</p><pre>{<br>  “extends”: “../tsconfig.json”,<br>  “compilerOptions”: {<br>    “outDir”: “../out-tsc/app”,<br>    “module”: “es2015”,<br>    “baseUrl”: “”,<br>    “types”: [“socket.io-client”]<br>  },<br>  “exclude”: [<br>    “test.ts”,<br>    “**/*.spec.ts”<br>  ]<br>}</pre><p>Install it is very easy, we just have a simple command to type. Now we can create a simple service to emit and handle socket events, lets call it <strong>app.socketIo.service.ts </strong>in folder ./src/app:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f82fa8ea05650862df14381ff17685b/href">https://medium.com/media/8f82fa8ea05650862df14381ff17685b/href</a></iframe><h3><strong>Server Side</strong></h3><p>→ <strong>Install packages</strong></p><ul><li><strong>Express</strong>: to serve Web App</li><li><strong>body-parser</strong>: to parse post requests and get data from html form</li><li><strong>http-statu</strong>s: to explicitly describe status of requests</li><li><strong>Mongoose</strong>: to connect to a <strong>mongo</strong> database</li><li><strong>Socket.io-server: </strong>Server side lib of socket.io</li></ul><pre><strong>npm install --save express body-parser http-status mongoose </strong><a href="http://socket.io/"><strong>socket.io</strong></a></pre><ul><li><strong>Update Architecture</strong></li></ul><p>Update file architecture for the server side code to add <strong>model</strong> and <strong>api.</strong></p><p>Create a file we will use to run our application, we can call it <strong>index.js </strong>on the root folder. The trick here is to serve statics files as expected, let the <strong>/api</strong> root path for our api and all others request will be redirect to the index file present in <strong>dist</strong> folder when running the app; without forgetting to instantiate the <a href="http://socket.io/">socket.io</a> server and handle some events to make sure all clients get them. The <strong>mongoose</strong> lib here will connect us to a mongo DB and allows us to define the server model.</p><p>In the index.js file we have:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/43d56d5f97588e2fbeb3044bcbf36fca/href">https://medium.com/media/43d56d5f97588e2fbeb3044bcbf36fca/href</a></iframe><p>→ Gist model: .<strong>/server/models/gist.js</strong></p><p>Let’s do something really simple, all gists with a model with follow properties: <strong>title</strong>, <strong>description</strong>, <strong>technologies</strong> and the <strong>link.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dfaa098d5962c7dbf6ed79d596fdad82/href">https://medium.com/media/dfaa098d5962c7dbf6ed79d596fdad82/href</a></iframe><p>→ To import mongoose and pass the db name to connect</p><pre><strong>var mongoose = require(‘mongoose’);</strong></pre><pre><strong>mongoose.connect(‘mongodb://localhost/gistology’); // A local db is used(gistology)</strong></pre><p>→ Build a little rest api for gists:</p><ul><li>File <strong>api.js </strong>presents in folder <strong>./server/routes</strong></li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0a0c11f3e51305a4e19cd991f3157c3/href">https://medium.com/media/f0a0c11f3e51305a4e19cd991f3157c3/href</a></iframe><ul><li>Import the api file</li></ul><pre><strong>// Get gist route<br>const api = require(‘./server/routes/api’);</strong></pre><ul><li>Defined <strong>/api</strong> as root path for all our api and match with the <strong>api.js </strong>file</li></ul><p><strong>Note: </strong>in the index.js file up there we done something like that.</p><p>→ Test the project:</p><ul><li><strong>Start mongo: </strong>for me it is sudo mongod</li><li><strong>ng build: </strong>to build the app(Take a look at <a href="https://github.com/angular/angular-cli/wiki">angular-cli wiki</a>)</li><li><strong>node index.js: </strong>to run the app</li><li>Now open this on your browser: <a href="http://localhost:3000/">http://localhost:3000/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*wCPGPgY3OBaG1i8ybTuYdw.png" /></figure><p><strong>Test the API: curl </strong><a href="http://localhost:3000/api/gist"><strong>http://localhost:3000/api/gist</strong></a> returns an empty <strong>array([])</strong> as I don’t yet create any gist(Yes the db is still empty)</p><h3>Setup and run <a href="http://socket.io/"><strong>Socket.io</strong></a><strong> Server:</strong></h3><p><strong>File: ./index.js</strong></p><ul><li><strong>Instantiate the </strong><a href="http://socket.io/"><strong>Socket.io</strong></a><strong> server</strong></li></ul><pre>const express = require(‘express’);<br>const http = require(‘http’);<br>const app = express();</pre><pre>/**<br>* Create HTTP server and start the connect the socket<br>*/</pre><pre>const server = http.createServer(app);<br>// Socket.io for real time communication</pre><pre>var io = require(‘socket.io’).listen(server);</pre><ul><li><strong>Emit &amp; Handle events</strong></li></ul><pre>/**<br>* Socket events<br>*/</pre><pre>io.sockets.on(‘connection’, function(socket){<br>  console.log(‘Socket connected’);<br>  // Socket event for gist created<br>  socket.on(‘gistSaved’, function(gistSaved){<br>    io.emit(‘gistSaved’, gistSaved);<br>  });</pre><pre>  // Socket event for gist updated<br>  socket.on(‘gistUpdated’, function(gistUpdated){<br>    io.emit(‘gistUpdated’, gistUpdated);<br>  });<br>});</pre><h3>Handle gist rest requests with <strong>@angular/http</strong> &amp; <strong>rxjs</strong></h3><p><strong>File: ./src/app/gist/gist.service.ts</strong></p><ul><li><strong>Source code</strong></li></ul><pre>import { Gist } from ‘./gist.model’;<br>import { Injectable } from ‘@angular/core’;<br>import { Http } from ‘@angular/http’;<br>import ‘rxjs/add/operator/map’;</pre><pre>@Injectable()<br>export class GistService {<br>  constructor(private http: Http) {}</pre><pre>  // Get all saved gists<br>  getAllGists(){<br>    return this.http.get(‘/api/gist’)<br>      .map(res =&gt; res.json());<br>  }</pre><pre>  // Get a gist by Id<br>  getGistById(gistId){<br>    return this.http.get(‘/api/gist/’ + gistId)<br>      .map(res =&gt; res.json());<br>  }</pre><pre>  // register a new gist<br>  postGist(gist: Gist){<br>    return this.http.post(‘/api/gist’, gist)<br>      .map(res =&gt; res.json());<br>  }</pre><pre>  // update a gist<br>  updateGist(gist: Gist){<br>    return this.http.put(‘/api/gist’, gist)<br>      .map(res =&gt; res.json());<br>  }</pre><pre>}</pre><ul><li><strong>Register the service in the AppModule</strong></li></ul><pre>// Some imports …<br>import { GistService } from ‘./gist/gist.service’;</pre><pre>@NgModule({<br>  declarations: […],<br>  imports: […],<br>  providers: [GistService],<br>  bootstrap: [AppComponent]<br>})<br>export class AppModule { }</pre><h3><strong>Ui to manage Gist: list, create, show and delete</strong></h3><ul><li><a href="https://github.com/dassiorleando/gistology/blob/master/src/app/gist/show/gist.show.component.html">https://github.com/dassiorleando/gistology/blob/master/src/app/gist/show/gist.show.component.html</a></li><li><a href="https://github.com/dassiorleando/gistology/blob/master/src/app/gist/edit/gist.edit.component.html">https://github.com/dassiorleando/gistology/blob/master/src/app/gist/edit/gist.edit.component.html</a></li><li><a href="https://github.com/dassiorleando/gistology/blob/master/src/app/gist/list/gist.list.component.html">https://github.com/dassiorleando/gistology/blob/master/src/app/gist/list/gist.list.component.html</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*xwwa_21Ec7l2aGMw0IGUww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*738xcLO8or1B6zhMRbsHxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*50OPk402XEjh5o1ThHKBLA.png" /><figcaption>UI to CRUD gists</figcaption></figure><h3>Resources</h3><ul><li><a href="https://scotch.io/tutorials/mean-app-with-angular-2-and-the-angular-cli">https://scotch.io/tutorials/mean-app-with-angular-2-and-the-angular-cli</a></li><li><a href="https://scotch.io/tutorials/using-mongoosejs-in-node-js-and-mongodb-applications">https://scotch.io/tutorials/using-mongoosejs-in-node-js-and-mongodb-applications</a></li><li><a href="https://www.tutorialspoint.com/unix_sockets/what_is_socket.htm">https://www.tutorialspoint.com/unix_sockets/what_is_socket.htm</a></li><li><a href="https://www.infoq.com/articles/Angular2-TypeScript-High-Level-Overview">https://www.infoq.com/articles/Angular2-TypeScript-High-Level-Overview</a></li><li><a href="https://v2.angular.io/docs/ts/latest/">https://v2.angular.io/docs/ts/latest</a></li><li><a href="https://material.angular.io/guide/getting-started">https://material.angular.io/guide/getting-started</a></li><li><a href="https://material.io/icons/">https://material.io/icons</a></li><li><a href="https://github.com/angular/flex-layout/wiki/Responsive-API">https://github.com/angular/flex-layout/wiki/Responsive-API</a></li><li><a href="https://github.com/Stabzs/Angular2-Toaster">https://github.com/Stabzs/Angular2-Toaster</a></li></ul><h3>Thanks for reading this post, recommend and share if you enjoyed it.</h3><h3>Follow me on <a href="https://twitter.com/dassiorleando">Twitter</a> and <a href="https://www.linkedin.com/in/dassi-orleando-257b04ab/">LinkedIn</a>, and visit my blog.</h3><p><strong>Cheers!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cedf1dc02fec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/build-real-time-app-with-mean2-angular-cli-and-socket-io-cedf1dc02fec">Build a real-time app with MEAN2, angular-cli and socket.io</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginner’s guide: My start in Data Science]]></title>
            <link>https://medium.com/hackernoon/beginner-guide-my-start-in-data-science-51431d3d750?source=rss-99cca12045fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/51431d3d750</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[datacamp]]></category>
            <dc:creator><![CDATA[Orléando Dassi]]></dc:creator>
            <pubDate>Tue, 21 Mar 2017 08:11:19 GMT</pubDate>
            <atom:updated>2023-12-31T23:18:45.518Z</atom:updated>
            <content:encoded><![CDATA[<h4>A beginner’s guide for beginners</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WMZzyZlpgP7kV1isYHUcFw.gif" /></figure><p><em>This article was originally posted </em><a href="http://www.dassiorleando.xyz/software-developer-beginner-data-scientist"><em>here</em></a></p><h3>Before The Outset</h3><p>I’ve never been good enough to make complex manipulations on data but writing algorithms and building web applications is a big <strong>Yes</strong>.</p><p><strong>Notes</strong>:</p><p>→ This is not a guide to becoming a full <a href="https://hackernoon.com/tagged/data-science">Data Science</a> Engineer, I’m just sharing what I started with in this field.</p><p><strong>→</strong> This is not a unique path either.</p><p>Instead, you can consider it as a start study plan for those coming from <strong>Software Development</strong> and want to be <strong>Junior</strong> <strong>Data Science engineer</strong>.</p><blockquote>The voice of a beginner for others beginners. :)</blockquote><h3>What is Data Science?</h3><p><em>Data science is a multidisciplinary blend of </em><strong><em>data inference, algorithm development, and technology</em></strong><em> in order to solve analytically complex problems.</em></p><p><a href="https://datajobs.com/what-is-data-science">What is Data Science?</a></p><p>For me, it is all the things we are doing with data that can solve some problems and come out with business value or <a href="https://hackernoon.com/tagged/growth">growth</a>.</p><h3>Kind of Data</h3><p>As we said up there it is about manipulating data the whole time, but what kind of data can we manipulate?</p><p>On the internet or in large enterprise applications there is a lot of data coming from different sources such as social media, calls to action, simple forms, log data, transactions, emails …<br>All things we are doing online or in others place require the most times that we input data, these data can be in different types:</p><ul><li>Text</li><li>Photo</li><li>Audio</li><li>Video</li><li>…</li></ul><p>Also in different formats:</p><ul><li><strong>Structured data</strong>: those with a certain degree of organization for further querying and/or analysis. As the one stored in <strong>Relational</strong> <strong>Database Management System </strong>or<strong> </strong>in<strong> Json, Xml, Xls </strong>files.</li><li><strong>Semi-structured and Unstructured data</strong>: easy to understand (not formatted), the opposite of the first.</li></ul><h3>Programming Languages for Data Science</h3><p>There are a lot of languages for Data Sciencing (hahaha), and some of them are very popular and more used than others.<br>There are a few: R, Python, Java …</p><h4>Job Posting by <strong>Indeed</strong></h4><figure><a href="https://www.indeed.com/jobtrends/q-python-and-data-science-q-R-and-data-science-q-scala-and-data-science-q-C-and-data-science-q-C++-and-data-science-q-Java-and-data-science-q-Javascript-and-data-science.html"><img alt="" src="https://cdn-images-1.medium.com/max/736/1*MBMegH5R8hOS7Hf3O15Fbg.png" /></a></figure><h4>Job Seekers by Indeed</h4><figure><a href="https://www.indeed.com/jobtrends/q-python-and-data-science-q-R-and-data-science-q-scala-and-data-science-q-C-and-data-science-q-C++-and-data-science-q-Java-and-data-science-q-Javascript-and-data-science.html"><img alt="" src="https://cdn-images-1.medium.com/max/742/1*gI9jL45GNKsPoI1QKRx8zg.png" /></a></figure><h4>Google Trend</h4><figure><a href="https://trends.google.fr/trends/explore?q=Python%20Data%20Science,R%20Data%20Science"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9oSgUvGFgjBS25LMvx5puA.png" /></a><figcaption><strong>Percentage of search interest in R and Python for Data Science: R in Red and Python in sky Blue</strong></figcaption></figure><h3>Why I choose to start Data Science with Python</h3><p>I have not just chosen to learn Data Science because it is also better paid in the tech industry. I’m firstly a passionate developer, OK? Then love to implement and discover a lot and I will surely use it in a venture we launch with some partners.</p><p><em>Python because it is also used a lot in this field and is one of the first programming languages I started with and found easy.</em></p><h3>Intro to Python for Data Science</h3><p>I started Data Science with a free and very educative certification available on <a href="https://www.datacamp.com/">www.datacamp.com</a>, it helped me to introduce myself to this field to be able to start in a new way in my career.</p><h4>The course</h4><p><a href="https://www.datacamp.com/courses/intro-to-python-for-data-science">Introduction to Python</a></p><h4>What I learned there</h4><ul><li>Manipulating Python list in deep</li><li>Manipulating Numpy array</li><li>Subsetting Numpy array</li><li>Subsetting 2D Numpy array</li><li>Simple exploration of data</li><li>Basic statistic</li></ul><h3>Practice</h3><p>There are a lot of <strong>exercises</strong> and <strong>XP</strong> I earned there on this free course, I will show you some examples of things I learned there, but impossible to put all here, it is not the intent of this post and it is too much:</p><ul><li><strong>4700</strong> XP Earned</li><li><strong>1</strong> Courses Completed</li><li><strong>57</strong> Exercises Aced</li></ul><h4>1. Python List</h4><ul><li><strong>Create a list:</strong></li></ul><pre>mySimpleList = [12, 43, 54, 34, 90] #Simple list with same type<br>myWeirdList  = [&#39;a&#39;, 43, 54, &#39;c&#39;, 90]   #Different types of items</pre><ul><li><strong>Print a list</strong></li></ul><pre>print(myList) # Knowing that the list is already created</pre><ul><li><strong>List of list</strong></li></ul><pre>countries = [[&quot;Cameroon&quot;, &quot;CM&quot;],<br>         [&quot;Nigeria&quot;, &quot;NG&quot;],<br>         [&quot;France&quot;, &quot;FR&quot;],<br>         [&quot;Gabon&quot;, &quot;GA&quot;]]</pre><ul><li><strong>Type of a variable</strong></li></ul><p>To print the type of variable, just hit this:</p><pre>print(type(myVariable))</pre><ul><li><strong>Index</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KPf_PSVis7zCvOOFIEs4jQ.gif" /></figure><pre>list[4] = list[-2] = 5</pre><ul><li><strong>Subsetting list</strong></li></ul><p>A subsetting always returns a list. Here the first index is included in the result and the last is not.</p><pre>list[1:4] = [2, 3, 4] # From index 1 to index 3 included</pre><pre>list[:4] = [1, 2, 3, 4] # From the start to index 3 included</pre><pre>list[1:] = [2, 3, 4, 5, 6] # From index 1 to the end</pre><h4>2. Numpy Array</h4><ul><li><strong>Install Numpy</strong>: pip3 install numpy</li><li><strong>Import Numpy</strong></li></ul><p>There is some manner to import python package/function, let’s focus on these two for this post:</p><pre><strong>import numpy</strong> # Here we will address numpy array with numpy.array</pre><pre><strong>import numpy as np</strong> # Address numpy array with np.array</pre><ul><li><strong>From list to numpy Array</strong></li></ul><pre># Using countries list declared up there<br>countries_np_array = np.array(countries)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*vSMA0TqY4XN_PelT72b71w.gif" /></figure><ul><li><strong>subsetting np array</strong></li></ul><pre>countries_np_array[:, 1] = array([‘CM’, ‘NG’, ‘FR’, ‘GA’])<br># Return all country code, all rows and the second column<br></pre><pre>age_array = np.array([2, 4, 6, 8])</pre><pre>age_selector = age_array &gt;= 4 <br># result array([False,  True,  True,  True], dtype=bool)</pre><pre># Now use this selector to index the new array<br><strong>print(age_array[age_selector])</strong></pre><pre># result array([4, 6, 8])</pre><p>Note: <strong>Numpy</strong> does not allow multiple types on an array and will force all types to be the same.</p><pre>age_array = np.array([True, 4, False, 8])<br><strong>print(age_array)</strong></pre><pre>#result array([1, 4, 0, 8])</pre><ul><li><strong>Operation over collections</strong></li></ul><pre>age = [2, 4, 6, 8]<br>div = [2, 2, 2, 4]</pre><pre>age_array = np.array(age) # Numpy array of ages<br>div_array = np.array(div) # Numpy array of divs</pre><pre><strong>print(age/div)</strong>  # divide python list<br># Traceback (most recent call last):<br># File “&lt;stdin&gt;”, line 1, in &lt;module&gt;<br>#TypeError: unsupported operand type(s) for /: ‘list’ and ‘list’</pre><pre><strong>print(age_array/div_array)</strong> # Will compute without issue on each item<br><strong>array([ 1.,  2.,  3.,  2.]) </strong>#<strong> </strong>result</pre><p>Data Science deals with a lot of information to analyze, sort, and do other things on, then it needs to do mathematical operations over collections quickly.</p><h4>3. Little stats with Numpy</h4><ul><li><a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.average.html">Average</a>: np.mean(your_numpy_array_or_axis)</li><li><a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.median.html">Median</a>: np.median(your_numpy_array_or_axis)</li><li><a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.std.html">Standard Deviation</a>: np.std(your_numpy_array_or_axis)</li></ul><p>Supposed we have an array representing the grade of 3 students of a class in two courses(French and English):</p><pre>import numpy as np<br>student_grades = np.array([[12, 16], [15.5, 9], [5, 16]])</pre><pre># Average of student&#39;s grade in <strong>French<br></strong># Here we select all the rows and the french axis(the first column)<br>french_average = np.average(student_grades[:, 0])<br><strong>print(french_average)</strong><br># result: 10.833333333333334</pre><pre># Standart deviation of student&#39;s grade in <strong>English<br></strong># We select all the rows and the english axis(the second column)<br>english_std = np.std(student_grades[:, 1])<br><strong>print(english_std)</strong><br># result: 3.2998316455372216</pre><h4>Got my first certification in this field :)</h4><figure><a href="https://www.datacamp.com/statement-of-accomplishment/course/2699f514b455d76844c28b9540eed27e858028df"><img alt="" src="https://cdn-images-1.medium.com/max/800/1*QEOAlGRC3b1XvhR1yDWoDg.png" /></a></figure><p>There are also a lot of interesting community courses available but <strong>non-certifying</strong>:</p><p><a href="https://www.datacamp.com/community/open-courses">Free Data Science and Analysis Training Courses | DataCamp</a></p><h3>Let’s Work together</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*Etw1WwRu-6i2N40Mzdbphw.gif" /></figure><p>Ping me if you are looking, or if you would like to have a partner to study and master Data Science with, I’m available for <strong>peer learning</strong>.</p><h3>Conclusion</h3><p>I think that starting by practicing using a simple and detailed course with a good scope is worth it for learning new things.</p><p>Thrilled to have it and excited to learn more using online resources and other posts about Data Science. <strong>I would also like to know how you started, or which advice can you give to a beginner like me.</strong></p><h3>Thanks for reading this post, recommend and share if you enjoyed it.</h3><h3>Follow me on <a href="https://twitter.com/dassiorleando">Twitter</a> and <a href="https://www.linkedin.com/in/dassi-orleando-257b04ab/">LinkedIn</a>, and visit my blog.</h3><p><strong>Cheers!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51431d3d750" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/beginner-guide-my-start-in-data-science-51431d3d750">Beginner’s guide: My start in Data Science</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>