Hey there. Sorry about that! Could you try this link please? It “should” run, at least I just tested it:
Hey there. Sorry about that! Could you try this link please? It “should” run, at least I just tested it:
Thank you very much. It works
its much faster to use Testcontainers for the postgres database and other external services, instead of using docker compose, for running tests. Plus you get automatic repeatability in GitHub actions and other CIs with docker installed.
I am planning on finding a way to conditionally include the piece of code in compile time, with a macro, if its possible, but right now the way start a postgres is to add approximately 1 line in application.ex:
@impl true
def start(_type, _args) do
if Mix.env() == :test, do: {:ok, _container} = Testcontainers.Ecto.postgres_container(app: :hello)
#....
end
When compiling for release you will get a warning that the Testcontainers.Ecto.postgres_container
is not a function that exists, if you scope the dependency with [:dev, :test]. If you would run a released version in test mode the application will crash and fail to start.
If you reboot your computer with this setup and want to work on a couple of tests, you can just go ahead and work until your tests pass. Then if you want to test the application you can start worry about your docker compose
The function Testcontainers.Ecto.postgres_container
overrides the repo config for the test session to set the port, user, pass and database.
PS! I have been planning on adding support for mapping data volume to a relative folder in the project, which will enable using the function also for dev mode. EDIT: propably volumes
Hi,
One more thing: are the videos subtitled?
I reassure you, your English, however, seems easy to understand.
Sadly no. I couldn’t find a good service that would auto-subtitle it for me and I don’t think Gumroad can show subtitles anyways but I’m working on something that will hopefully solve all these issues pretty soon → yellowspaceship.com
Is there an issue here, or do you just find doing it this way easier for yourself?
I am looking at buying this course, and to me getting a good explanation of how to do it with docker compose adds value.
Not an issue. A suggestion to course maker. And/or advanced tip after finishing course. Not affiliated. Choose to ignore if you want to learn with Docker Compose, and/or havent finished course in its current form.
Thanks, I want to try both ways.
For Black Friday, I offer the course at 50% less!
Check it out here (the link contains the coupon code BLACKFRIDAY2023
)
Thanks for the discount - things are tight right now and a recent tech assessment exposed a lot of areas that need some attention
Just an FYI that I launched my own video course platform at indiecourses.com and dropped the price of this course by 50% as a launch promotion!
You can find the course here:
Congrats on the launch. That’s a pretty great offer will be checking it out.
Thanks Ben! I’m glad you like the video course
Mini-promo: My courses are 40% off during Black Friday
Promo code: BLACKFRIDAY2024
Build an MVP with Elixir:
https://indiecourses.com/catalog/build-an-mvp-with-elixir-6i4V9yOqLL54GuG0HkV9HR?code=blackfriday2024
Building Forms with Phoenix LiveView:
https://indiecourses.com/catalog/building-forms-with-phoenix-liveview-2OPYIqaekkZwrpgLUZOyZV?code=blackfriday2024
Hello Peter,
May I propose that you propose to all course makers to state in which versions of elixir/phoenix/liveview/other tools… their course is created (as you did in “Building Forms with Phoenix Liveview”) and maybe show a release date?
As I cannot reach out to the creators (maybe adding a contact info, too?) I cannot ask them.
Wondering if you offer purchasing power parity discounts? Was interested in ‘Building forms with Phoenix’ course.
@rkc one side note, remember just because its expensive doesn’t mean its good
you need to be ready to learn the hard way, read the docs, read how things are done in other languages and frameworks and try to implement the same concepts in elixir phoenix
and last but not least, use AI , do use AI , get copilot
I would argue that nowadays paying for AI is the only learning resource you should pay for
Hey @Nefcairon that’s an interesting idea, but I’m currently only maintaining Indie Courses. I’ve noted down your idea though and think it’s interesting indeed. Thank you!