![]() I often use alpine image, since its size is very small. ![]() There are many other versions with different tags as well. This will pull the image with the latest tag. ![]() But we’re gonna use the first one, because it is the official Postgres image.Īs you can see here, we can simply run docker pull postgres to get this image. So let’s go to Docker Hub to search for its image. In this course, we will use PostgreSQL as the database engine for our app. So let’s learn how to pull the first image. If we run docker images to list all available docker images. At the moment it’s an empty list because we haven’t run any containers yet. We use docker ps command to list all running containers. When the circle turns green, we know that docker desktop is started and ready to be used. Right now it’s a yellow circle, which means docker desktop is still starting. Let's open the app! It will take a while for docker desktop to start, you can see its status by clicking on this icon. And that’s it! Docker desktop is successfully installed. On a Mac, it’s super easy! We just need to open this docker website and click download.Īfter the installer is downloaded, we open it, and drag Docker into the Applications folder. Here's the link to the full series playlist on YoutubeĪlright, let’s start by installing docker. We will also learn how to setup and use TablePlus to connect and interact with Postgres, and use it to run the SQL script that we’ve generated in the previous lecture to create our Simple Bank’s database schema. Today we will learn how to install Docker Desktop on local machine, then download and start a PostgreSQL container. In the last lecture, we’ve learn how to design a database schema with dbdiagram.io Welcome back to the backend master class! 3 How to write & run database migration in Golang 4 Generate CRUD Golang code from SQL | Compare db/sql, gorm, sqlx, sqlc 5 Write Go unit tests for db CRUD with random data 6 A clean way to implement database transaction in Golang 7 DB transaction lock & How to handle deadlock 8 How to avoid deadlock in DB transaction? Queries order matter! 9 Deeply understand Isolation levels and Read phenomena in MySQL & PostgreSQL 10 How to setup Github Actions for Go + Postgres to run automated tests 11 Implement RESTful HTTP API in Go using Gin 12 Load config from file & environment variables in Golang with Viper 13 Mock DB for testing HTTP API in Go and achieve 100% coverage 14 Implement transfer money API with a custom params validator in Go 15 Add users table with unique & foreign key constraints in PostgreSQL 16 How to handle DB errors in Golang correctly 17 How to securely store passwords? 18 How to write stronger unit tests with a custom go-mock matcher 19 Why PASETO is better than JWT for token-based authentication? 20 How to create and verify JWT & PASETO token in Golang 21 Implement login user API that returns PASETO or JWT access token in Go The command to create a new container with ports, volumes, etc can get cluttered quickly so I also use docker-compose with a docker-compose.yml file that includes the port and volume mappings.1 Design DB schema and generate SQL code with dbdiagram.io 2 Install & use Docker + Postgres + TablePlus to create DB schema. Congrats on taking your first steps with MongoDB and Docker! Running containers with Docker is very efficient. Creating a MongoDB container allows us to work with a portable and extensible NoSQL database without worrying about the underlying configuration of the devices we want to run it on. MongoDB is the most popular NoSQL database system, and it can be used for many things. Some recommended topics to cover next include: There’s still so much more to learn about MongoDB. To get started learning these concepts and more, check out Educative’s course The Definitive Guide to MongoDB. Let’s add a new component by right-clicking on ' Pages ' folder and select Add > New Item. In this interactive course, you’ll get to see for yourself why there’s so much hype around MongoDB. Select ASP.NET Core from the left panel, then select Razor Page from templates panel as shown in the figure below: Figure 34: Create new Blazor component. Name the file as MyFavoriteBands and then click New. Open your browser and visit to access phpMyAdmin UI: Once you log-in with the previously configured password (my-secret-pw). You’ll learn basic Mongo command operations, using MongoDB in C# and. ![]() Throughout the way, you’ll use MongoDB to build projects as you learn. By the end, you’ll know all about how to use MongoDB databases. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |