Build and deploy a REST API with Deno
In this course, we will learn how to create and deploy a REST API with Deno from scratch.
- 3.8 / 5 (6 ratings)
- Published
- Updated
01Remote
You can take the course from anywhere in the world, as long as you have a computer and an internet connection.
02Self-Paced
Learn at your own pace, whenever it's convenient for you. With no rigid schedule to worry about, you can take the course on your own terms.
03Community
Join a vibrant community of other students who are also learning with Build and deploy a REST API with Deno. Ask questions, get feedback and collaborate with others to take your skills to the next level.
04Structured
Learn in a cohesive fashion that's easy to follow. With a clear progression from basic principles to advanced techniques, you'll grow stronger and more skilled with each module.
How to create an application in Deno
Integrating databases into your application
Importance of database migrations in production applications
Deploying Deno applications to production using CICD
Dockerized Deno applications
Developing using TypeScript
In this course, we will learn how to work with Deno to create a REST API using TypeScript with the web framework Oak and the migration tool Nessie. Deno is a JavaScript runtime created by Ryan Dahl, the same creator for Node, as an attempt to simplify the JavaScript landscape by strictly following the WebAPI specs. If you are interested in learning more about the motivation behind Deno, you can watch this video where Ryan Dahl explains "10 Things I Regret About Node.js"
We will explore how to create an application using the powers of TypeScript, and learn how to traverse the Deno ecosystem which is much like the native web ecosystem. There are 5 modules that will take you from installing Deno and running your first lines of code, to working with web frameworks and databases, and in the end, deploying your application to a web server using a deployment pipeline.
Throughout this course, you will experience all the different aspects of Deno which you will need to create your own application in the future. And from this course, you will get a good feeling for if Deno is ready to be your next default for new projects.
Our students work at
Course Syllabus and Content
Introduction
2 Lessons
Introduction to the newline guide to building and deploying a REST API using Deno.
In this lesson, we will install Deno and create our setup for the rest of the course.
Getting Started with Deno
6 Lessons
Introducing Deno and its history
We will look at the command line interface for running Deno
In this lesson, we will look at general usage of Deno by running a file and also introduce the config file
Learn how to use the Deno standard library and other external modules with URL imports
We will build our first server in Deno
You will learn how to make a simple token authentication in Deno
Connect to a database
4 Lessons
Introducing Deno databases
Using the PostgreSQL client for Deno
Using the MySQL client for Deno
Using the SQLite client for Deno
Database migrations
7 Lessons
Introduction to database migrations - what, why and how
Get started with database migrations using Nessie
We will go through creating a migration using the Nessie CLI
We will look at how to write a migration script where we create a table
We will run our migration and learn how to roll back the migration
We will create a seed file using the Nessie CLI
We will run our seed file and populate our database
REST API
14 Lessons
Introduction to the concept of REST APIs and why we use them
We will go through the thought process of planning an application.
We will create the initial project files and set up our environment
We will create the router and look at how to test our endpoints
It's time to add Nessie! We will now initialize Nessie in our project and also spin up our development database
Time to connect our models to our database!
In this step, we will create our first data model and create a corresponding table using a migration
Creating the methods to access the database
Creating the server endpoints for the Duck namespace
We will look at how to set up authentication and further authorize the requests
We will create two new tables using a migration and create the equivalent models
We will create our Quack service and controller
The last stretch! We will create our final namespace, Crumb, and connect it to our other models and our router
Now that our application is completed, we will consider some improvements and discuss alternative approaches.
Deployment
6 Lessons
We will introduce deployments and what we will learn in this module
We will create a Docker image for our application
You will learn how to create a basic CI file for GitHub and GitLab, and run tests on them
We will deploy our application to a server using CI, SSH and git.
We will deploy our application to Digital Ocean Apps. This is by far the easiest (but most costly) approach.
Similar to how we did it in lesson 1, we will be deploying using CI and SSH, but instead of git, we will be using Docker.
Subscribe for a Free Lesson
By subscribing to the newline newsletter, you will also receive weekly, hands-on tutorials and updates on upcoming courses in your inbox.
What Students are Saying
Meet the Course Instructor

Purchase the course today
newline Pro Subscription
$18/MO
Get unlimited access to the course, plus 60+ newline books, guides and courses. Learn More
Billed annually or $40/mo billed monthly. Free to cancel anytime.
- Discord Community Access
- Full Transcripts
- Project Completion Guarantee
- Lifetime Access
Plus:
- Unlimited access to 60+ newline Books, Guides and Courses
- Interactive, Live Project Demos for Every newline Book, Guide and Course
- Complete Project Source Code for Every newline Book, Guide and Course
- Best Value 🏆
Frequently Asked Questions
Who is this course for?
This course is for any skill level, from junior to senior, who wants to learn more about Deno and how to utilize it in production.
What are the prerequisites?
Basic knowledge about JavaScript (TypeScript), SQL and Git is assumed.
What is expected of me?
The interest in learning about Deno and how to make an application using it!
What if I need help?
You can ask us questions anytime through the community Discord channel or by sending us a message.