Skip to content

Gabriella439/servant-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

servant-crud

This is an example CRUD web service and client written using Haskell's servant library. This provides the code for:

  • a server that creates, reads, updates, and deletes files via a REST API, and:
  • an example client program that uses the API.

To install this:

This will create two executables named crud-client and crud-server under ~/.local/bin. You can then launch the server on port 8080 by running:

$ ~/.local/bin/crud-server 8080

... and then you can launch the client in a separate session by running:

$ ~/.local/bin/crud-client 8080
Hello, world!

This project code is organized into three files:

  • src/Servant/Crud.hs - The definition of the REST API
  • exec/Server.hs - Server-specific logic
  • exec/Client.hs - Client-specific logic

About

Example CRUD web server+client using Servant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published