Skip to content

sarpt/argrep-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

argrep-web - run grep recursively on archives

An argrep http server.

execution example

App is separated into a frontend and backend - backend is written in deno, and frontend in react.

From server directory run...

deno run --unstable --allow-net --allow-read --allow-write --allow-run ./server/main.ts

... or install/compile:

  • deno install --allow-net --unstable --allow-read --allow-write --allow-run ./server/main.ts

  • deno compile --allow-net --unstable --allow-read --allow-write --allow-run ./server/main.ts

and then run:

argrep-web

... to start a server.

Then, to run a frontend, navigate to frontend directory and run yarn serve.

For quick & simple testing of the server curl invocations could be used:

curl -X PUT --data "path=<path to file>" --data "pattern=<some pattern to search>" localhost:8080/greps

... it will return task id which ten can be used with SSE:

curl -N localhost:8080/sse/greps?id=<id>

dependencies for running

permissions

  • unstable - for using unstable socket & running APIs
  • allow-net - for sockets communication between server & argrep
  • allow-run - for executing argrep
  • allow-read & allow-write - for unix socket communication with argrep

About

HTTP + SSE Server for argrep

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published