Skip to content

esteeele/elixir-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebhookProcessor

So despite the name this doesn't actually use any webhooks (yet, might try implementing that next)

Just having a bit of fun/doing some more unfamiliar programming with Elixir/Erlang

'Usage'

iex -S mix
SendEvents.sendEvents(100) 

Will pointlessly send some random data from a HTTP client to a web server

Rover API

Can create a 'rover' that moves about with

POST /rover

{
	"rover" : {
		"posx" : 1,
		"posy" : 1,
		"name" : "fido"
	}
}

Then move it about with

POST rover/{name}

{
	"update" : "get_state|go_forward|turn_left"
}

TODO: Error handling Elixir/Erlang style -> i.e. handle errors with pattern matching not in the Java way of worrying about everything that might break

Installation

If available in Hex, the package can be installed by adding webhook_processor to your list of dependencies in mix.exs:

def deps do
  [
    {:webhook_processor, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/webhook_processor.

About

Embarassingly simple web server written in Elixir - just for fun and to stretch my mind

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages