Skip to content

breun/frak-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frak-server

POST some (space-separated) strings to receive a regular expression matching those strings, courtesy of the frak library.

Regex as a Service (RaaS).

Build Requirements

Build

$ ./mvnw package

You should be able to use mvnw.cmd on Windows.

Run

Execute the assembled jar:

$ java -jar target/frak-server-1.0-SNAPSHOT-jar-with-dependencies.jar
(...)
INFO: FrakServer listening on port 8080, POST some strings!

Supply a port number as an argument to start the server on an alternative port:

$ java -jar target/frak-server-1.0-SNAPSHOT-jar-with-dependencies.jar 8888
(...)
INFO: FrakServer listening on port 8888, POST some strings!

Usage

POST some (space-separated) strings to receive a regular expression matching those strings:

$ curl -X POST -d "test one two" localhost:8080
(?:t(?:est|wo)|one)

About

Regex as a Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published