Writing Open-Source Projects with Low/No Code


You have probably heard about Phoenix if you have spent time in the Elixir ecosystem. One of the main draws of using Elixir for web development is harnessing the advantages of functional programming and OTP (open telecom platform) to create highly scalable apps. Elixir is a superb web framework. This article at FreeCode Camp by Adam Gordon Bell discusses Earthly, an open-source code technology that helps you with open-source projects without writing any code.
Phoenix Frameworks for Open-Source Projects
Phoenix is a web framework with several unique characteristics used in many open-source code projects. It enables you to create interactive, sophisticated web applications without developing client-side code. You can achieve this by utilizing a LiveView feature that allows the client browser to get real-time HTML updates from the server. You may easily modify your page to display the most recent tweets on a particular topic. The programming language Elixer is used for framework creation.
José Valim is the author of Elixir. While it resembles Ruby in appearance, its semantics are considerably different. Elixir is a programming language that uses the Erlang Virtual Machine (VM) and is utilized by businesses like Heroku and initiatives like Discord.
Reproducing Builds and Unifying Test Runs
Phoenix Framework’s build cycle takes advantage of GitHub Actions. Phoenix employs an ORM to communicate with several databases, and integration testing ensures that no modifications will cause any of the supported databases to stop working.
In this article, the author introduces Earthfile, an open-source code technology with several targets, like setup and integration-test. The targets can have dependency relationships between them. Each target can be run using the Earthly command-line tool within a Docker container, which lets you run the build wherever you choose.
The author uses the installed version of OTP (open telecom platform) and hexpm/elixir Docker container to demonstrate the integration test.
Running Earthly in GitHub Actions
This same process can be used within GitHub Actions simply by modifying its yaml to use Earthly for the build pipeline. Then you can run the build pipeline locally without setting up a complex environment. Also, you can run the same build process on your developer machine without installing anything except Earthly. As a result, new contributors are more likely to approach the project.
To read the original article, click on https://www.freecodecamp.org/news/open-source-continuous-integration/