Skip to content

A simple phone-book web app using just erlang as a server for the front and the backend. The app uses cowboy for requests and rebar3 to compile. At the moment the data is stored in an ETS table, then, if the server goes down or restarted, the data will be lost. Future implementations will use PostgreSQL, WebSockets and improve the UI.

License

Notifications You must be signed in to change notification settings

williamthome/ephone-book

Repository files navigation

ephone_book

An OTP application

Dev

Make sure to open your browser and the url from the current page be the app page.

Live reload to watch changes in erlang modules and assets files

$ ./ephone_book.sh dev-watch

Live reload for erlang modules

$ ./ephone_book.sh run dev

Live reload for assets files

$ ./ephone_book.sh watch

Rebar3

Compile

$ rebar3 compile

Run in shell

$ rebar3 shell

Build a release

$ rebar3 as prod release

Run the release in shell

$ rebar3 as prod shell

Docker

Build

$ ./docker.sh build

Run

Attached to the console (interactive)

$ ./docker.sh run it

or detached

$ ./docker.sh run d

navigate to http://0.0.0.0:2938

Deploying to fly.io

Command used to create the app:
$ flyctl launch --image williamthome/ephone_book --name ephone-book

$ ./ephone_book.sh deploy

About

A simple phone-book web app using just erlang as a server for the front and the backend. The app uses cowboy for requests and rebar3 to compile. At the moment the data is stored in an ETS table, then, if the server goes down or restarted, the data will be lost. Future implementations will use PostgreSQL, WebSockets and improve the UI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published