While Post is no doubt the de facto standard for API testing and development, Insomnia REST Client - a light and easy-to-use alternative to Postman is hands down my favorite API client today. Typically, one would use API Clients such as Postman to test the functionality and performance of our API during the development. Regardless of whether you’re a front-end or a back-end developer, it is common for us to integrate with 3rd party APIs or even develop our own set of APIs. It has made my life as a developer so much easier.įree version (with gist sync plugin) is great enough for personal usage Photo Credits: Insomnia REST Client The best part about this is that we keep different versions of the same software running on our machine! If you haven’t started using Docker, I would highly recommend you try it out. Oh, now you need a Redis instance? Simply run: docker run -name dredis -d redis # To run shell within the same docker container: With Docker, we could easily download and run specific versions of the external dependencies that we want.įor example, to install the latest version of PostgreSQL, simply run: # To download & run the latest postgres image:ĭocker run -d -name dpostgres -p 5432:5432 -e POSTGRES_PASSWORD=password postgres:latestĭocker exec -it dpostgres psql -U postgres In a real-life scenario, our applications often require us to have external dependencies such as databases, message queues, etc. Learn more about Dockerfile and building Docker images here. The best part of this is that we can then use the same Docker image that was just built on a completely different computing environment (with Docker installed over there of course). We can use docker build -t xxx command to build our image and then docker run -d - name xxx -p xxx to serve our application. Here’s a simple example, if your application requires NodeJS and running npm install to work, we can simply define everything we need inside our Dockerfile i.e.: # Example of a NodeJS application DockerfileĮNV PATH /usr/src/app/node_modules/.bin:$PATHĬMD Example of a NodeJS application Dockerfile Dockerizing Your Application For Different Computing Environmentsĭocker images are defined within special text files called Dockerfile, and it requires us to define all the steps explicitly inside the Dockerfile. Today, with a Docker image, we could easily package up our code and all its dependencies into a Docker container that can run quickly and reliably from one computing environment to another. Python, NodeJS, etc.) of your app before your application can run. Long gone are the days when you need to SSH into your production server and install the dependencies (i.e. If you are looking for tools recommendation beyond VSCode and Git, read on.ĭocker Pricing: Free Photo Credits: Docker In this article, I will be sharing some of my favorite tools that I use as a back-end developer. Also, using Git is indisputable and I believe we are all on the same page. These are tools that we live and breathe with at our jobs daily, and chances are, we can’t work effectively without them.įor the most part, everyone has their favorite code editor like Vim, Sublime Text, Atom, VSCode, etc., I am not going to bring those up. Every developer has a toolset that we will use while coding.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |