DEV Community

Deno Full Course in 3.5 hours

Deno The Successor of Nodejs

Learn #Deno (the successor of #Nodejs) from very basics to advanced by creating API in deno using MongoDB and authenticate the user using JWT in 3.5 hours

Deno Modules Used

We will use various modules of Deno world

  1. Oak Middleware Framework https://deno.land/x/oak
  2. Encrypt Password https://deno.land/x/bcrypt
  3. Generate JWT Token https://deno.land/x/djwt
  4. Mongo DB Driver https://deno.land/x/mongo

Useful Links

Docs: https://deno.land
Source Code: https://github.com/bitfumes/deno-js-with-mongodb-course

Here is the list of topics we will cover

1 Getting Started with Deno
2 Introduction to Deno Oak
3 Create your first route
4 Create Post route with data
5 Create Dynamic routes
6 Handle not found
7 Using Environment Variable
8 Using Controllers
9 Installing MongoDB
10 Using Mongo Driver
11 Fetch user from MongoDB
12 Store user into mongo db
13 Validate Request Data
14 Delete user from mongodb
15 Update user on mongodb
16 Validation on Update
17 Refactor Validation
18 Multiple Errors at once
19 Handle Empty Object
20 Hot Restart with Denon
21 Handling Incorrect User ID
22 Add created at field
23 Bcrypt the password
24 Create Login route
25 Fetch the user with email
26 Verify Password
27 Generate JWT
28 Extract auth token from header
29 Validate Auth Token
30 Create Auth Middleware
31 Create Protected Routes
32 Fetch UserId from token
33 Show authenticated use

Check out The Progressive Course of Denojs at
https://bit.ly/2ZArzXg

Any suggestions or comments are welcome :)

Top comments (20)

Collapse
ย 
radoslavgrn profile image
Radoslav Nikolov โ€ข

Actually Deno is not the successor of NodeJS as NodeJS is and will be still used in many years to come. It is all cool creating tutorials but if we talk business, what are the benefits for a company to switch to Deno if not customer's wishes? It might be better but both Node and Deno are not racing against each other and are similar, so what is the point of heating things up, like the creator didn't say that they are comparable but still no different?

Collapse
ย 
sarthaksavvy profile image
๐’ฎ๐’ถ๐“‡๐“‰๐’ฝ๐’ถ๐“€ ๐Ÿ“จ โ€ข

I believe you have a good point.
But if you watch Ryan Dahl talk, he said many issues about nodejs and Deno solves that.
But for sure from business prospective nodejs is not going to die and both node and Deno will go parallel

Collapse
ย 
sirseanofloxley profile image
Sean Allin Newell โ€ข

Interesting; are you going to update the course as deno evolves?

Collapse
ย 
sarthaksavvy profile image
๐’ฎ๐’ถ๐“‡๐“‰๐’ฝ๐’ถ๐“€ ๐Ÿ“จ โ€ข

Yeahh, if you check full course at bitfumes.com/premium, I have written it as "Progressive course"
With every Major release, course will be updated ๐Ÿคฉ

Collapse
ย 
sirseanofloxley profile image
Sean Allin Newell โ€ข

Keep up the good work!

madRespekt

Collapse
ย 
sarthaksavvy profile image
๐’ฎ๐’ถ๐“‡๐“‰๐’ฝ๐’ถ๐“€ ๐Ÿ“จ โ€ข

Those of you who want to go ahead of this youtube video course.
Here is a progressive course for you bit.ly/deno-course
Get it now with 30% off coupon DENODENO30

Feedback and suggestions are appreciated :)

Collapse
ย 
yurianxdev profile image
Julian Garzon โ€ข

I think I love u ๐Ÿ˜‚

Collapse
ย 
sarthaksavvy profile image
๐’ฎ๐’ถ๐“‡๐“‰๐’ฝ๐’ถ๐“€ ๐Ÿ“จ โ€ข

I know you love me ๐Ÿคฃ๐Ÿคฃ

Collapse
ย 
chandrapantachhetri profile image
Chandra Panta Chhetri โ€ข โ€ข Edited

Ah just what I was looking for! Wanted to get started with Deno, but didn't know where to look, seems I've found it. Thanks!

Collapse
ย 
sarthaksavvy profile image
๐’ฎ๐’ถ๐“‡๐“‰๐’ฝ๐’ถ๐“€ ๐Ÿ“จ โ€ข

Yeah video premier tomorrow, dry you're reminder

Collapse
ย 
chandrapantachhetri profile image
Chandra Panta Chhetri โ€ข

Can't wait!

Collapse
ย 
luispa profile image
LuisPa โ€ข

Great!

Thanks for sharing.

Collapse
ย 
manprajapat profile image
MANISH PRAJAPATI โ€ข

I catch you here also. This is too early, surely will look into this. Thanks @sarthak

Collapse
ย 
sarthaksavvy profile image
๐’ฎ๐’ถ๐“‡๐“‰๐’ฝ๐’ถ๐“€ ๐Ÿ“จ โ€ข

Thanks bro ๐Ÿ˜โœŒ๏ธ

Collapse
ย 
pankajsanam profile image
Pankaj โ€ข

Hey Sarthak, I have been watching your videos for some time. Eagerly waiting for this one too.

Collapse
ย 
cmcwebcode40 profile image
Chinweike Michael Chinonso โ€ข

Can you test your api usiny postman?

Collapse
ย 
sarthaksavvy profile image
๐’ฎ๐’ถ๐“‡๐“‰๐’ฝ๐’ถ๐“€ ๐Ÿ“จ โ€ข

Yeahhh

Collapse
ย 
sarthaksavvy profile image
๐’ฎ๐’ถ๐“‡๐“‰๐’ฝ๐’ถ๐“€ ๐Ÿ“จ โ€ข

What if I can say that now the Deno course includes WebSocket Real-time chat system with over 16 new videos on the playlist.
Check this out bit.ly/deno-course