bashd
1.0.0

Clone o projeto
git clone https://github.com/AlexGustafsson/bashd
Navegue até a pasta
cd bashd
Inicie o servidor
./bashd
Investir rápido
Características
Uso
Contribuindo
Perguntas frequentes
Definindo uma rota
route get / homePage
# Special 404 route - handles all 404s
route get 404 notFoundPage
# POST a message to the echo page to hear it back louder!
route post /echo echoPagePáginas de manuseio
function homePage {
startResponse
cat << EOF
<html>
<head></head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
EOF
}
function notFoundPage {
setResponseCode " 404 "
startResponse
cat << EOF
<html>
<head></head>
<body>
<h1>Cannot find $HTTP_METHOD $HTTP_PATH </h1>
</body>
</html>
EOF
}
function echoPage {
startResponse
cat << EOF
<html>
<head></head>
<body>
<h1> ${HTTP_BODY_MESSAGE^^} </h1>
</body>
</html>
EOF
}P : Funciona? A : Sim.
P : É seguro? A : Não.
P : É uma piada? A : Principalmente.
Qualquer ajuda com o projeto é mais do que bem -vinda. Em caso de dúvida, poste um problema.