An open API service indexing awesome lists of open source software.

https://github.com/eproxus/kraft

A minimalistic Erlang web framework
https://github.com/eproxus/kraft

Last synced: about 1 year ago
JSON representation

A minimalistic Erlang web framework

Awesome Lists containing this project

README

          

# Kraft

An minimalistic Erlang web framework.

## Examples

Start an example shell:

```
rebar3 as example shell
```

Navigate to http://localhost:8090 to see a list of examples. All examples can be
found in the `examples/` folder.

## Development

### Formatting

Kraft uses [erlfmt][erlfmt] to format its code.

* `rebar3 fmt` to reformat all the code
* `rebar3 fmt path/to/file` to reformat a single file
* `rebar3 check` to check if formatting adheres

Kraft includes a Git hook that checks formatting before committing. To start
using the included Git hook in this repository, run the following command in
the root of the repository:

```
git config core.hooksPath .githooks
```

[erlfmt]: https://github.com/WhatsApp/erlfmt