Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anvouk/erlang-demo-server
https://github.com/anvouk/erlang-demo-server
backend cowboy erlang erlang-otp erlydtl html lager rebar3
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/anvouk/erlang-demo-server
- Owner: anvouk
- License: apache-2.0
- Created: 2021-05-16T21:50:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T20:43:04.000Z (4 months ago)
- Last Synced: 2024-11-10T10:41:20.121Z (2 months ago)
- Topics: backend, cowboy, erlang, erlang-otp, erlydtl, html, lager, rebar3
- Language: Erlang
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# myappRebar
Demo erlang/otp/rebar3 application.
Tested on otp 22.
Features:
- basic http rest server with cowboy.
- compression support
- logging middleware
- pseudo helmet middleware
- env configurable http port
- html templates via erlydtl dependency
- home page
- demo login page
- demo login form handling
- static files serving
- lager logging (with custom config)
- http request to json backend
- json handling
- dev mode
- erlang formatter (rebar3 fmt)Todo:
- add release mode.
- release config.
- docker support (?).
- database read/write example (via orm).## Build
```bash
rebar3 compile
```## Dev mode
```bash
rebar3 shell
```## Format code
```bash
rebar3 fmt
```