Last Updated on July 3, 2023
What you’ll learn
-
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
-
Test API endpoints with Postman
