A minimal Erlang project demonstrating a clean REST API built with Cowboy. This repository provides a simple users API with standard CRUD operations and a lightweight frontend to interact with it.
-
Users API
GET /api/v1/users— list all usersGET /api/v1/users/:id— get a single userPOST /api/v1/users— create a new userPATCH /api/v1/users/:id— update an existing userDELETE /api/v1/users/:id— delete a user
-
Frontend
- Table view of all users
- Detailed view for each user
- Inline edit and delete actions
- Minimal, modern design using vanilla HTML/CSS/JS
-
Error Handling
404 Not Foundpage with JSON response
- Erlang
- Cowboy (HTTP server)
- EUnit for unit tests
- PostgreSQL as database
make deps
make compile
make tests
make run-localFrontend is served statically via Cowboy. Navigate to /#/users to view users.
Built with vanilla HTML/CSS/JS. Powered by Cowboy.


