Skip to content

The repo for the Cardiff Devfest talk: Learn you some Erlang for a Great Conference!

Notifications You must be signed in to change notification settings

JDragovichAlertLogic/erlquest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Erlquest

This the Repo for the Cardiff Devfest 2019 talk Learn You Some Erlang For a Great Conference.

Run Project

Pull this repository and navigate to the project root.

git clone [email protected]:JDragovichAlertLogic/erlquest.git
cd erlquest

Run the included start script to start the application

./start.sh

If the shell script isnt working for you, try running it manually.

Once the shell is running, run the following commands in the shell to start hot code reloading and start the application.

sync:start().
application:ensure_all_started(erlquest).

Running it Manually

First you'll need the docker container and this repo pulled down

docker pull jdragovich1985/erlang-dev-fest-2019:1.0.2

Also make sure you've pulled this repo to your local machine.

git clone [email protected]:JDragovichAlertLogic/erlquest.git

Navigate to the root of this repositiory and run the following docker command. This will start the erlang shell

cd erlquest
docker run -it --rm -v `pwd`:/erlquest -p 8080:8080 jdragovich1985/erlang-dev-fest-2019:1.0.2 /bin/bash -c 'cd erlquest && rebar3 shell'

Methods

All methods deal with plain text

ANY / - Returns a welcome message

GET /rooms - Returns a list of current rooms

POST /rooms - Adds a room to the DB

GET /messages/:room - get all messages for a particular room

POST /messages/:room - add a message to a particular room

About

The repo for the Cardiff Devfest talk: Learn you some Erlang for a Great Conference!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published