🪁 A simple, type-safe http server for PureScript
Go to file
2017-08-01 22:08:27 -07:00
docs/Examples Split out SecureServerM (#60) 2017-08-01 22:08:27 -07:00
src Split out SecureServerM (#60) 2017-08-01 22:08:27 -07:00
test Add SSL support (#55) 2017-08-01 22:08:27 -07:00
.bowerrc Rename top level directories to be purescript standard 2017-07-17 23:29:51 -07:00
.gitignore Rename top level directories to be purescript standard 2017-07-17 23:29:51 -07:00
.travis.yml Turn off travis email notifications (#43) 2017-07-18 11:29:30 -07:00
bower.json Move to upstream purescript-node-http. (#59) 2017-08-01 22:08:27 -07:00
Contributing.md Rename top level directories to be purescript standard 2017-07-17 23:29:51 -07:00
History.md Release notes for v0.3.0 (#61) 2017-08-01 22:08:27 -07:00
License Clean up file naming and directory structure (#21) 2017-07-10 12:06:14 -07:00
Makefile Rename top level directories to be purescript standard 2017-07-17 23:29:51 -07:00
Readme.md Add pursuit badge (#53) 2017-08-01 22:08:27 -07:00
Releasing.md Correct issues with the releasing guide 2017-07-10 12:50:16 -07:00

HTTPure

License Latest release Build Status purescript-httpure on Pursuit

A purescript HTTP server framework.

Status

This project is currently an early-stage work in progress. It is not production-ready yet. You can track what's left before it gets production-ready by looking at our roadmap. If you'd like to help us get there quicker, please contribute! To get started, check our contributing guide.

Installation

bower install --save purescript-httpure

Quick Start

module Main where

import Prelude (pure, ($))

import Control.Monad.Eff.Console as Console
import Data.StrMap as StrMap
import HTTPure as HTTPure

main :: HTTPure.ServerM (console :: Console.CONSOLE)
main =
  HTTPure.serve 8080 router $ Console.log "Server now up on port 8080"
  where
    router _ = pure $ HTTPure.OK StrMap.empty "hello world!"

Documentation

Module documentation is published on Pursuit.

Examples

HTTPure ships with a number of examples. To run an example, in the project root, run:

make example EXAMPLE=<Example Name>

Each example's startup banner will include information on routes available on the example server.

Testing

To run the test suite, in the project root run:

make test

Contributing

We are open to accepting contributions! Please see the contributing guide.

People

HTTPure is written and maintained by Connor Prussin.

We are open to accepting contributions! Please see the contributing guide.

License

MIT