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.
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:
# 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
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
1. rails generate model Company name:string email:string address:string
Installation using rbenv:
rbenv is a simple two-step process. First, you install rbenv, and then
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
rbenv install 2.7.1
rbenv global 2.7.1
We can install any version, but here I have installed v6
gem install rails -v 220.127.116.11
If you’re using rbenv, you’ll need to run the following command to make the rails executable available:
Now check the rails version:
Rails used sqlite3 as…
In the last story, I covered how to setup Prisma. Now we will create Rest APIs using Prisma.
A. Project setup * npm init -y * npm i body-parser express — save * npm i webpack webpack-cli — save-dev
For authentication first, add the required dependencies to the project:
npm add lodash bcrypt jsonwebtoken
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. 😇
npm install -g prisma
Alternative: Install with Brew or Yarn
brew install prisma
yarn global add prisma
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.
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…
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.
We need to install two independent software for this environment setup: Node.js and MySQL.
Run the following commands in the terminal :