Skip to main content

Posts

Showing posts from June, 2019

How to Install Jenkins on Ubuntu 19.04

Jenkins is a Java based software which can be installed from the Ubuntu packages. Jenkins is mainly used for Continues Integration and Continuous Deployment (CI CD). On this tutorial, we will install Jenkins on Ubuntu 19.04. Before you start, please prepare yourself. You have Ubuntu 19.04 installed on your PC/Laptop/Server. Java 8 is already installed. Prepare Firewall Rules for Jenkins Jenkins uses a custom port 8080 to run, so you need to create a firewall to all access to this port. Go to VPC Network >> Firewall rules and click Create Firewall rules. In Name enter jenkins In Targets select All instances in the network In Source filter select IP ranges In Source IP ranges enter 0.0.0.0/0 In Protocols and ports check TCP and enter 8080 Click Create . Installing Jenkins To install latest version of Jenkins, add the repository key to the system and add the repository address to the sources list. sudo wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.

Google Drive API Javascript Example

On this tutorial, we gonna use Google Drive API for Javascript. We use NodeJS on this tutorial, so you must have NodeJS installed in your PC/Laptop. For the API authentication, go to console.developers.google.com and choose your option. You can authenticate with API key, or by Oauth 2.0, and by Service Account. Your authentication is almost ready, you have to enable Google API you want to use, by visiting Google API Library https://console.developers.google.com/apis/library and enable Google Drive API. Follow this step to use Google Drive API.