Coder Social home page Coder Social logo

teocci / go-fiber-web Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 971 KB

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.

Home Page: https://github.com/teocci/go-fiber-web

License: MIT License

Dockerfile 0.16% Go 44.85% CSS 8.53% JavaScript 45.15% HTML 0.49% Batchfile 0.83%
fiber fiber-framework golang webserver

go-fiber-web's Introduction

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

go-fiber-web's People

Contributors

teocci avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

johyeonkang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.