Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.39 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.39 KB

Reading App Server

This is the server used for communication with the reading app that is built here.

Installation

Runbundle install in the repo. Ruby 2.5.5+ is required. Also make sure to have curl installed via your favorite package manager or grab it from here for Windows.

Download the repository (or clone it if you have Git: git clone https://www.github.com/tr4wzified/SocialReadingAppServer).

Running the server for development purposes

Run ruby main.rb in the repository directory. Access it on 127.0.0.1:2048.

Running the server - alternative

For portability or performance reasons you may want to run a compiled version of the server - to do this run ruby compiler/compiler.rb main.rb in the root repository directory. Afterwards main.bin will appear and you'll be able to run the compiled code with ruby compiler/run.rb main.bin.

Accepted arguments

  • usage: ./main.rb [options]
-h, --help
    
-l, --limit       (optional) specify the maximum hourly amount of POST requests allowed per user
    
-p, --production  run the server in production mode

Running the unit tests

Run ruby run_tests.rb in the repository directory.

Running the fuzzer

Run ruby fuzzer/fuzzaday.rb in the repository directory. Make sure to start up the server itself before attempting to run this one.