Skip to content

faroedev/local-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faroe local server

A bare-bones Faroe implementation with everything stored in memory. It is only for local testing and should not be used in production.

Instructions

To get started, clone the repository.

git clone [email protected]:faroedev/local-server.git

Or, install a pre-built binary from GitHub releases.

https://github.com/faroedev/local-server/releases/latest/download/darwin-amd64.tgz
https://github.com/faroedev/local-server/releases/latest/download/darwin-arm64.tgz
https://github.com/faroedev/local-server/releases/latest/download/linux-amd64.tgz
https://github.com/faroedev/local-server/releases/latest/download/linux-arm64.tgz
https://github.com/faroedev/local-server/releases/latest/download/windows-386.tgz
https://github.com/faroedev/local-server/releases/latest/download/windows-amd64.tgz

Start the server by passing the port number and your user server action invocation endpoint.

See the user server overview page for details on user servers. No authentication is required for the action invocation endpoint.

go run . 3001 "https://localhost:3000/user/invoke-action"

./local-server 3001 "https://localhost:3000/user/invoke-action"

/ is the action invocation endpoint (http://localhost:3001 on port 3001).

What's missing for production?

  • The user server action invocation endpoint is unprotected.
  • Only one CPU core is used for hashing passwords.
  • No IP-based rate limits or Captchas in front of the Faroe server action invocation endpoint.
  • Go maps are used for storage. You may ran out of memory since the size of these maps are uncapped.

About

Bare-bones local Faroe server for testing.

Resources

Stars

Watchers

Forks