GithubHelp home page GithubHelp logo

hartl3y94 / headerfaker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fossabot/headerfaker

0.0 0.0 0.0 47 KB

A simulation training ground to Help beginners learn about http protocol with figuring out some question.

Go 100.00%

headerfaker's Introduction

HeaderFaker

GitHub go.mod Go version

HeaderFaker is a simulation training ground to Help beginners learn about http protocol with answering some question.

Install

  1. Clone the repository from Github
git clone https://github.com/aURORA-JC/headerfaker.git
  1. Cd to project root path & build
go build
  1. HeaderFaker will be build in the project root path

  2. Install Mysql or MariaDB

Usage

  • Files required to start the program
 + template/
 + data.json
 + config.ini
 + headerfaker
  1. Import the database from heakerfaker.sql

  2. Modify the configuration file config.ini

port = 9000
release = false

[mysql]
user = 
password = 
host = 
port = 
db = headerfaker
  • Simple Start
# Set runnable power (Linux need)
sudo chmod +x ./headerfaker

# Start service
./headerfaker
# HeaderFaker will start on 0.0.0.0:9000
  • systemd run
# Set runnable power (Linux need)
sudo chmod +x ./headerfaker

# add a new .service file in /lib/systemd/system
sudo vim /lib/systemd/system/headerfaker.service

# write & save content
[Unit]
Description=HeaderFaker Service
After=network.target

[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=<YOUR_HEADERFAKER_ABSOLUTE_PATH>
WorkingDirectory=<YOUR_HEADERFAKER_DIR_ABSOLUTE_PATH>
LimitNOFILE=1048576

[Install]
WantedBy=multi-user.target
# Or you can copy the .service file under the ./init dir

# Start the service
systemctl start headerfaker

# Set start at boot
systemctl enable headerfaker

Contributing

PRs accepted. But new branch is developing.

License

MIT © aURORA-JC

Author

John Chow (aURORA-JC)

headerfaker's People

Contributors

aurora-jc avatar

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.