This is the server used for communication with the reading app that is built here.
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
).
Run ruby main.rb
in the repository directory. Access it on 127.0.0.1:2048
.
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
.
- 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
Run ruby run_tests.rb
in the repository directory.
Run ruby fuzzer/fuzzaday.rb
in the repository directory. Make sure to start up the server itself before attempting to run this one.