Skip to main content
Skip to main content
🚧 Work in Progress

Elixir Getting Started

Elixir ↗ is an asynchronous event-driven JavaScript runtime, which is designed to build scalable network applications.

As said, there is no need for coding yet, we have created a Github repository ↗, a recipe, containing the most simple Elixir web application. The repo will be used as a source from which the app will be built.

🚀Feel free to deploy the recipe yourself

This is the most bare-bones example of Elixir app running on Zerops — as few libraries as possible, just a simple endpoint with connect, read and write to a Zerops PostgreSQL database.

  1. Log in/sign up to Zerops GUI ↗

  2. In the Projects box click on Import a project and paste in the following yml config (source ↗):

project:
name: recipe-elixir
tags:
- zerops-recipe

services:
- hostname: api
type: elixir@1.16
enableSubdomainAccess: true
buildFromGit: https://github.com/zeropsio/recipe-elixir

- hostname: db
type: postgresql@16
mode: NON_HA
priority: 1
  1. Click on Import project and wait until all pipelines have finished.

That's it, your application is now up and running! Let's check it works:

  1. A subdomain should have been enabled and visible in the project's IP addressed & Public Routing Overview box. Its format should look similar to this https://api-808-4000.prg1.zerops.app.
  2. Click or the subdomain URL to open it in a browser and you should see
{"message":"This is a simple Elixir application running on Zerops.io, each request adds an entry to the PostgreSQL database and returns a count. See the source repository (https://github.com/zeropsio/recipe-elixir) for more information.","newEntry":"e64be640-d6c2-4be8-93ac-d1e40e56fa06","count":1}
Tip

Do you have any questions? Check the step-by-step tutorial, browse the documentation and join our Discord community to get help from our team and other members.

How to start

It doesn't matter whether it's your first curious introduction to Zerops, you have already mastered the basics and are looking for a tiny detail or inspiration. Below, choose a section that fits your needs:

Feature Highlights

When in doubt, reach out

Don't know how to start or got stuck during the process? You might not be the first one, visit the FAQ section to find out.

In case you haven't found an answer (and also if you have), we and our community are looking forward to hearing from you on Discord.

Have you build something that others might find useful? Don't hesitate to share your knowledge!