go-fiber-web

command module
v0.0.0-...-14fd0b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 1 Imported by: 0

README

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

Documentation

Overview

Package main Created by RTT. Author: teocci@yandex.com on 2022-Apr-26

Directories

Path Synopsis
src
cmd
Package cmd Created by RTT.
Package cmd Created by RTT.
cmd/cmdapp
Package cmdapp Created by RTT.
Package cmdapp Created by RTT.
config
Package config Created by RTT.
Package config Created by RTT.
core
Package core Created by RTT.
Package core Created by RTT.
logger
Package logger Created by RTT.
Package logger Created by RTT.
model
Package model Created by Teocci.
Package model Created by Teocci.
scache
Package scache Created by Teocci.
Package scache Created by Teocci.
utils
Package utils Created by RTT.
Package utils Created by RTT.
utils/env
Package env Created by RTT.
Package env Created by RTT.
utils/mapslice
Package mapslice Created by RTT.
Package mapslice Created by RTT.
webserver
Package webserver Created by RTT.
Package webserver Created by RTT.
webserver/apicontroller
Package apicontroller Created by RTT.
Package apicontroller Created by RTT.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL