URL Shortener: TypeScript, PostgreSQL, Koa.Js, REST and MVC.

person icon Devlyzer

URL Shortener: TypeScript, PostgreSQL, Koa.Js, REST and MVC.

Master Modern Web Development by Building a Robust URL Shortening Service with Cutting-Edge Technologies

updated on icon Updated on Nov, 2023

language icon Language - English

person icon Devlyzer

architecture icon Web Development,RESTful API,REST API,PostgreSQL,Databases

Lectures -29

Duration -4.5 hours


30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 8,500+ top Tutorials Point courses anytime, anywhere.

Course Description

Dive into modern web development as you build a feature-rich URL Shortening Service from the ground up. This comprehensive course is designed to provide you with a thorough understanding of TypeScript, PostgreSQL, Koa.js , REST, Knex.Js, and the MVC design pattern, as well as practical experience in applying these technologies and concepts to a real-world project.

In this course, you will start by setting up your development environment and configuring the required tools for an optimal workflow. You will then dive into database configuration and management using PostgreSQL, learning how to create and execute migrations to set up your database schema. The course also covers the use of TypeScript to create efficient and scalable models that interact with the database, as well as the implementation of services to handle URL-related operations and other application logic.

As you progress through the course, you'll explore user authentication and authorization, covering topics such as user registration, password hashing, and JWT-based authentication for secure access to protected resources. You will also learn how to develop a RESTful API using the Koa web framework and Koa Router, creating routes and middleware for various application functionalities.

Throughout the course, you will be guided by hands-on examples and practical exercises that will reinforce your understanding of the topics covered. By the end of this course, you'll have developed a solid foundation in modern web development technologies, enabling you to create efficient and robust applications using TypeScript, PostgreSQL, Koa, and the MVC design pattern. With a completed URL Shortening Service project to showcase, you'll be well-prepared to tackle future web development challenges with confidence and expertise


What will you learn in this course:

  • Understand URL shortener services and their benefits

  • Get familiar with key technologies: Knex, TypeScript, and Koa, JWT, Hashing

  • Set up the development environment and configure project tools

  • Establish a database connection and configure Knex instance

  • Create and manage database migrations

  • Implement a services layer in your project

  • Validate objects and handle exceptions with custom libraries

  • Understand HTTP status codes and operational vs non-operational errors

  • Create an authentication service

  • Hash passwords and store them securly

  • Learn about JWT tokens and implement token issuance and validation

  • Set up Koa server, middlewares, and routers for API handling

  • Protect your Koa router with authentication middlewares


What are the prerequisites for this course?

  • Basic understanding of programming concepts and JavaScript language.

  • Familiarity with Nodejs and npm (Node Package Manager) for managing packages.

  • Some experience with databases, particularly relational databases, and SQL.

  • A basic understanding of RESTful API concepts and JSON data format.

  • An understanding of MVC (Model-View-Controller) design pattern is helpful but not required.

URL Shortener: TypeScript, PostgreSQL, Koa.Js, REST and MVC.


Check out the detailed breakdown of what’s inside the course

1 Lectures
  • play icon Introduction 05:16 05:16
Environment Setup
2 Lectures
Database and Migrations (Model Layer)
7 Lectures
Building the Application Logic (Controller Layer)
7 Lectures
User Authentication and Authorization
4 Lectures
Building the API with Koa (View Layer)
7 Lectures
Course Wrap-up
1 Lectures

Instructor Details



I do courses in English and Arabic :)

As a highly skilled and dedicated full-stack developer with over 7 years of experience, I am passionate about creating and delivering high-performing software solutions. My expertise spans multiple languages and frameworks, including Node.js, React, PostgreSQL, and SQL. I have successfully led and managed development teams. With a track record of providing technical guidance and maintaining high-quality standards, I am committed to helping students master the art of software development and achieve their goals.

Course Certificate

User your certification to make a career change or to advance in your current career. Salaries are among the highest in the world.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
People having fun around a laptop

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
People having fun around a laptop

Talk to us