Aws Cognito lets you easily add user sign-up, sign-in, sign-out, and authentication to your mobile and web apps. Amazon Cognito also enables you to authenticate users through an external identity provider and provides temporary security credentials to access your app’s backend resources in AWS or any service behind Amazon API Gateway. Amazon Cognito provides authentication, authorization, and user management for your web and mobile apps.

AWS Cognito has 2 main things.

  1. User Pool
  2. Identity Pool

You can enable your users to authenticate with a user pool. Your app users can sign in either directly through a user pool, or federate…


DocuSign is the fast, reliable way to electronically sign documents and agreements on any device from almost anywhere in the world. I am not talking too much about DocuSign. You can read this more from the official website. In this story, we’re going to cover Docusign integration with Python Django without login

Let’s start integration:

  1. You have to create an account on DocuSign.
  2. Create an App.
  3. Get an integration key, user id, and account id from DocuSign and put them into the settings.py file of our Django project.

#Settings.py

# DocusignCLIENT_AUTH_ID = '54**********************f1' # Integration Key. (You can get…


Active Record plays the most important role in ROR. Active Record is the ORM (Object-relational mapping) of rails. Using the Active Record we can perform CRUD operation in ROR and manages all database related operations. It is a model aspect of rails and it is representative of data. Is allows you to present data from databases rows as objects and used in business logic

1. Create models:

We can create models in ROR using rails like 👇

rails generate model model_name field_name:type, field_name:type...

We will create some sample models for your understanding

Company model:

1. rails generate model Company name:string email:string address:string

Adding…


Ruby on Rails is the most popular open-source web application framework. It’s built with the Ruby programming language. You can use the Rails framework to build your applications, from simple to complex. ROR follows MVC architecture.

Installing Ruby

Installation using rbenv:

Installingrbenv is a simple two-step process. First, you install rbenv, and then ruby-build:

cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

rbenv install 2.7.1
rbenv global 2.7.1
ruby -v

Installing Rails

We can install any version, but here I have installed v6

gem install rails -v 6.0.2.2

If you’re using rbenv, you’ll need to run the following command to make the rails executable available:

rbenv rehash

Now check the rails version:

rails -v

Setting Up A Database

Rails used sqlite3 as…


In the last story, I covered how to setup Prisma. Now we will create Rest APIs using Prisma.

To use Prisma client in Nodejs, first setup Nodejs

A. Project setup         * npm init -y         * npm i body-parser express — save         * npm i webpack webpack-cli — save-dev

Let’s start

  1. Open server.js and create routes to API:

2. Authentication:

For authentication first, add the required dependencies to the project:

npm add lodash bcrypt jsonwebtoken

Uses:

  1. jsonwebtoken
  2. bcrypt
  3. lodash

3. In API folder create user.js file for creating RESTful API for the user register, a user login, and user delete.

2. In the API folder create file company.js …


Prisma provides a database client for your GraphQL API. It is used to build GraphQL, REST APIs, and more. Prisma currently supports MySQL, PostgreSQL, MongoDB. Prisma generate GraphQL schema and resolver with its own. We can directly integrate into the frontend which makes developer’s life easy. 😇

Prisma Setup

1. Install Prisma via Homebrew or npm or yarn

npm install -g prisma

Alternative: Install with Brew or Yarn

brew install prisma
# or
yarn global add prisma

2. Connect Prisma to a database

To setup Prisma, you need to have Docker installed. Run the following command to get started with Prisma:

prisma init your_dir_name like(demo)

after that it open CLI then select the following:

* Select Create…


In this story lets discuss the pagination, authentication, and authorization with MySQL database.

Firstly, while fetching the data using the GET method without limiting the records then there could be a possibility where the server can’t handle oversized payload and could crash. So it is good programming practice to fetch the data in the chunk as pages with the limited number of items in each payload.

Authentication and Authorization are required for security purposes. Authentication is required for securely validating the user identity. Authorization start after authentication. In authentication only validating users can access the data and APIs.

For these…


What is RESTful API?

Restful API is an implementation of API(Application Programming Interface)

REST (Representational State Transfer) is a communication method architecture that uses the HTTP protocol to exchange data and this method used in application development.

Before creating a RESTful API, the first thing you need to do is define the EndPoint of the RESTful API that you will create.

RESTful API uses HTTP verbs.

HTTP verbs that are commonly used are GET, POST, PUT, PATCH, and DELETE. Commonly called as CRUD (Create-Read-Update-Delete).

In this tutorial, I will share with you how to create a simple RESTful API to retrieve data from the…


Introduction

In this story, we will cover all the steps of setting up NodeJS with MySQL. We are going to use Node.js modules, Express.js, and Sequelize. The first one is a lightweight web framework, the second one is the middlewares of NodeJS to handle all HTTP requests and the third one is an ORM for NodeJS.

Topics covered

  1. How to setup NodeJS with MySQL
  2. How to write models
  3. How to connect models with database

Environment setup

We need to install two independent software for this environment setup: Node.js and MySQL.

Project setup

Run the following commands in the terminal :

  1. mkdir NodejsMySqlDemo && cd NodejsMySqlDemo
  2. npm init…

Shweta Pawar

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