Skip to content

alexandreservian/slim-server

Repository files navigation

Slim Server

This is a slim server to handle a simple api application.

Before, run mix deps.get

Run in iex mode

Create a process, and after access http://localhost:4000.

{:ok, pid} = Plug.Cowboy.http SlimServer.SimpleCall, %{}

Or, you can run this server with:

mix run --no-halt

Run with docker

First create the image

docker build -t alexandreservian/elixir:laster .

After create container

docker container run -d -v $(pwd):/usr/src/workspace -p 8080:8080 alexandreservian/elixir:laster

Run wiwh docker-compose

First create the image

docker-compose build

After create container

docker-compose up -d

After access your localhost at port 8008 like http://localhost:8080/

About

Slim server to handle a simple api application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published