Skip to content

Go-Fiber-Web is an open-source project utilizing the Go Fiber framework for building web servers. It provides a clean and basic project structure, equipped with scripts for easy deployment on Linux servers. Note that it's designed for security research purposes only.

License

Notifications You must be signed in to change notification settings

teocci/go-fiber-web

Repository files navigation

go-fiber-web Go Reference

go-fiber-web is an open-source sample using fiber as a webserver as basic clean project.

Disclaimer

This tool is limited to security research only, and the user assumes all legal and related responsibilities arising from its use! The author assumes no legal responsibility!

config

Change the port for the web server on the config.json file

{
  "web": {
    "port": 9012
  }
}

add a .env file with the following variables

MPS_API_SECRET=<HASH>

Run

go run main.go

open http://localhost:9012/page.html

Scripts

@echo off

set APP_NAME=wb-analyzer
set PROJECT_PATH=D:\code\go\%APP_NAME%
set BIN_PATH=%PROJECT_PATH%\bin
set VIEWS_PATH=%PROJECT_PATH%\views
set WEB_PATH=%PROJECT_PATH%\web

echo Pulling from Git...
cd %PROJECT_PATH%
git pull

echo Building Go project...
go build -o %APP_NAME%.exe

echo Copying files...
xcopy /y /d /i %APP_NAME%.exe %BIN_PATH%
xcopy /y /d /i .env %BIN_PATH%
xcopy /y /d /i config.json %BIN_PATH%
xcopy /y /d /i %VIEWS_PATH%\* %BIN_PATH%
xcopy /y /d /i %WEB_PATH%\* %BIN_PATH%

echo Build and copy completed.

pause
# run the server
@echo off

set APP_NAME=wb-analyzer
set BIN_PATH=D:\code\go\%APP_NAME%\bin

echo Running the executable...
cd %BIN_PATH%
%APP_NAME%.exe

pause

About

Go-Fiber-Web is an open-source project utilizing the Go Fiber framework for building web servers. It provides a clean and basic project structure, equipped with scripts for easy deployment on Linux servers. Note that it's designed for security research purposes only.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published