A standalone http server that you can program easily via http without knowing linux.
Launch with Go
You can launch the service directly with Go
go mod download # gathers all dependencies go run main/main.go -port 80 # runs the program as an http server, 80 is the default port number
control and hit
c on your keyboard
Launch with docker-compose
Docker/Docker desktop and Docker Compose (usually comes installed with Docker)
Either a local version of all containers needed, or a docker login
docker-compose up -d
You can send a PUT request to your server to save something.
Then, in your browser, input the URL:
||which port to listen on||
||whether to allow traffic from a source other than localhost||
||which storage to use, currently supported: local disc and memory, which will be deleted whenever the server is shut down||
||if using local storage, name of the database file to create and use.||
||any valid file path|
Potential use cases
- Mock server
- Database with functional capabilities
- Rapid prototyping
Projects that inspired me
I haven’t connected with authors of these projects and they don’t endorse this project, I just dig their ideas.
More about the project
What would it look like if an http application server grew with your abilities? It would start with zero config, then you could add static text, json, files or logical programs with single http calls. You’d program this http server the same way you use it: via http commands.
Web projects should be easy to start and keep the focus on your idea. Instead, web creators often have to learn to work with git, linux, apache, application servers, and language-specific frameworks before their server starts. Even cloud services and FaaS frameworks have their own concepts to master before you can start a project.
Unlike a web UI, HTTP programming protocols can scale to production needs, with an ability to backup, store, and redeploy functionality and data. Therefore an interesting addition would be a server that’s simple to start, but doesn’t require a web UI.
Fast follow features 0.1:
- S3 saver
- Output whatever you replaced if you replace something
- Ability to force a type of input
- Add logs http output