Skip to content

A HelloWorld Demo app written in Elixir for experimentation with Cowboy, Distillery and more...

Notifications You must be signed in to change notification settings

Ilyes512/elixir_hello_world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelloWorld: A Elixir Demo application

This is a very simple demo Elixir application written purely to do the fallowing things:

  • Play around with Cowboy (Erlang HTTP server).
  • Create a release using Distillery (maybe in combination with Docker).

More expirements may fallow (the above list will be updated).

Docker

Building the docker container and run it:

docker build --rm -t hello_world .
docker run --rm -d -p 8080:8080 -t hello_world

Creating certs (only needed if you dont use Docker)

Requirement for creating self-signed certificate is openssl. Find out if you have openssl installed by running the fallowing:

$ which openssl
/usr/bin/openssl

It returns openssl not found if you don't have openssl installed.

Creating the key and the crt files in ./cert:

$ mkdir cert && cd cert
$ openssl req -newkey rsa:2048 -nodes -keyout hello_world.key -x509 -days 365 -out hello_world.crt -subj "/C=NL/ST= /L= /O= /CN= "

TODO

  • Use a self-signed SSL sertificate so I can serve using HTTPS.
  • Use Docker.
  • Remove Server Response Header using a Cowboy Stream.
  • Redirect http to https.
  • Create a docker-compose file.
  • Use Conform for setting run-time configuration. (Experimented with it, but at this time not needed.)

About

A HelloWorld Demo app written in Elixir for experimentation with Cowboy, Distillery and more...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages