API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other. Each time you use an app like Facebook, send an instant message or check the weather on your phone, you’re using an API.

Let’s install Laravel 8 via composer. (https://laravel.com/docs/8.x/installation#installation-via-composer)

composer create-project laravel/laravel laravel-jwt-api

Now go to the folder and start the server

php artisan serve

Run the following URL to the browser: http://127.0.0.1:8000/

So We will create two tables
1.)users — (id , name , email , phone , phone_no , password)
2.)courses …


API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other. Each time you use an app like Facebook, send an instant message or check the weather on your phone, you’re using an API.

Let’s install Laravel 8 via composer. (https://laravel.com/docs/8.x/installation#installation-via-composer)

composer create-project laravel/laravel laravel-api

Now go to the folder and start the server

php artisan serve

Run the following URL to the browser: http://127.0.0.1:8000/

Before getting started let’s understand basic concepts of Laravel .So what is the migration process in Laravel?

php artisan make:migration CreateStudentsTable

Go to the…


The AWS Command Line Interface (AWS CLI) is an open source tool that enables you to interact with AWS services using commands in your command-line shell. With minimal configuration, the AWS CLI enables you to start running commands that implement functionality equivalent to that provided by the browser-based AWS Management Console from the command prompt in your terminal program:

https://www.youtube.com/watch?v=KqdQa1r71dc

If you plan to configure and use Lambda functions from the command line, install the AWS Command Line Interface (AWS CLI)

To set up the AWS CLI, see the following steps.

apt-get install awscliaws --version

It will ask for…


Javascript Concepts for interviews

  • Synonyms: ECMAScript 6, ECMAScript 2015, JavaScript 6.
  • JavaScript is a subset of ECMAScript.
  • Previously javascript. Netscape approach to ECMA and then after it is known as ECMAscript.
  • ECMA does language standardization.
  • However, ES6 tackles a lot of the limitations of the core language, making it easier for devs to code.

Now let’s understand ES6 concepts.

1.) Template strings

  • Template literals :- string literals with support of multi lines and interpolation
  • Tagged template literals :- function calls with template literals.

Template literals — Using backtick. Ex :- `…`. And Expression with $ sign and curly braces ${…}.

const name = 'kshitij';
console.log(`Hello …

Amazon SES (Simple Email Service) is a High-scale inbound and outbound cloud email service. AWS SES is easy to integrate and with high deliverability, efficiency, scaling. You can use AWS SES for transactional email , marketing purpose and for bulk emails. If your Sending email from an application hosted in Amazon EC2 $0 for the first 62,000 emails you send each month, and $0.10 for every 1,000 emails you send after that.

So, sending email using SES let’s create one lambda using node js.

var aws = require('aws-sdk');
var ses = new aws.SES({
region: 'ap-southeast-1'
});
let subject = "";
let…

The CakePHP team is thrilled to announce the immediate availability of 4.0.0.CakePHP 4 is coming with breaking changes. This new release is targeting the newest versions of PHP especially 7.2. CakePHP 4 supports FormHelper now generates HTML5 validation messages and DateTime inputs, Middleware for CSP headers, Form tampering prevention, and HTTPS enforcement.

CakePHP has a few system requirements:

HTTP Server. For example Apache. Having mod_rewrite is preferred, but by no means required. You can also use nginx, or Microsoft IIS if you prefer.
Minimum PHP 7.2
mbstring PHP extension
intl PHP extension
simplexml PHP extension
PDO PHP extension

Installing CakePHP 4

Before starting…


In this article, you’ll learn how to use the Node.js crypto module to perform cryptographic operations on data. I'll show you how to encrypt data with a secret key and then decrypt it using the same secret key when required.

Create a new project

Create a new directory in your local file system and switch to it by typing the following

mkdir encr_decr && cd encr_decr
npm init -y

Now install the crypto module

npm install crypto --save

Now make app.js.

Add following code to app.js

var Crypto = require('crypto');
var secret_key = 'fd85b494-aaaa';
var secret_iv = 'smslt';
var encryptionMethod = 'AES-256-CBC';
var key…

Let’s suppose we have 2 collections of users and posts. If we want to delete all related posts of the user when we delete the user. We can manage this thing by following steps.
First, we delete users and after that, we delete all posts related to that user from posts collection. But somehow we get errors during deleting posts from the collection. In such cases, the user is removed but posts remain in the collection. To handle such a scenario Transaction comes into place.

Let’s take an example. Insert data to users and posts collection.

db.users.insertOne({"name":"lorem"});

Copy inserted Id…


Node.js can be used in database applications. One of the most popular NoSQL databases is MongoDB.

MongoDB

To be able to experiment with the code examples, you will need access to a MongoDB database.

You can download a free MongoDB database at https://www.mongodb.com.

Or get started right away with a MongoDB cloud service at https://www.mongodb.com/cloud/atlas.

Let us try to access a MongoDB database with Node.js.

To download and install the official MongoDB driver, open the Command Terminal and execute the following:

npm install mongodb

Node.js can use this module to manipulate MongoDB databases:
To create a database in MongoDB, start by…


What Is AWS Secrets Manager?

In the past, when you created a custom application to retrieve information from a database, you typically embedded the credentials, the secret, for accessing the database directly in the application. When the time came to rotate the credentials, you had to do more than just create new credentials. You had to invest time to update the application to use the new credentials. Then you distributed the updated application. If you had multiple applications with shared credentials and you missed updating one of them, the application failed. …

Kshitij Soni

Developer by profession . Youtube channel : https://www.youtube.com/channel/UCOWT2JvRnSMVSboxvccZBFQ

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store