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?
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.