DEV Community

Cover image for Day 8 of #30DaysOfCode | Building Restful APIs
Shubham Saurav
Shubham Saurav

Posted on

Day 8 of #30DaysOfCode | Building Restful APIs

Hey everybody! Firstly, I would like to thank you for reading this post. I am thankful to all of you who is following me in my journey of becoming a better programmer and a better person.

Today is the 8th day of my #30DaysOfCode challenge. For the last 7 days, I was mostly focused on learning and writing Go code but today decided to focus my entire time in building the Journal API which I talked about in the last post. So, let's talk about the tech stack I am using to write my Restful API.

I am building the API with NodeJs and MongoDB. I am using ExpressJS and mongoose to make development easier. For dealing with user authentication, I am using bcryptyjs and jsonwebtoken. There are many other dependencies but these are the main ones.

Now, comes the golden question.
How can you build a Restful API?
There are many options available in the market for building Restful APIs. There are the languages that I know of which can be used to build Restful APIs:- Javascript, Python, Ruby, Php, and Golang. There are not the only options but the ones I know of. Now, let's talk about how can these languages be used to build a Restful API.
Javascript can be used in the backend with NodeJs. You can also choose to build an API with Javascript framework like ExpressJS, AdonisJs. These frameworks are really popular and have a demand in the market.
Python can be used with Flask or Django Rest framework. You can use Django Rest Framework for rapid development.
Ruby was a popular choice a few years ago and it still is a very capable language. You can use the Ruby on Rails to build an API very quickly.
Php is a very popular choice. Many developer don't like Php but it's still a very capable technology. You can use Laravel or any other Php framework to build an API.
Golang can also be used to build APIs. In fact, it has an inbuilt library for that. You can also use frameworks like Fiber or Buffalo to build your API.

All these languages are very capable for this task. But that's not the only thing that you need. You also need a database to store data. MongoDB, MySql, PostgreSQL, etc are popular choice. Choose the one that suits your need and you will never go wrong.

Alright! that's gonna be it for today and hopefully, I will see you in the next post.

Connect With Me:
Youtube: ShubhamSauravYT.
Twitter: @hiShubhamSaurav
Instagram: @hiShubhamSaurav
Facebook: @hiShubhamSaurav

Top comments (0)