Getting started
Fiction uses most popular and pre-installed dependencies and has support for multiple cores for network.
Requirements
Section titled “Requirements”- bash 4.0+ (4.* support in theory, not fully tested)
- GNU coreutils
- netcat/ncat/socat (optional, for HTTPS and fork support)
- awk, grep, sed (mostly preinstalled)
Installation
Section titled “Installation”-
Install Fiction by cloning the github directory
Section titled “Install Fiction by cloning the github directory”Terminal window git clone https://github.com/FictionWeb/framework -
Go to the framework directory
Section titled “Go to the framework directory”Terminal window cd framework -
Make
Section titled “Make bashx and fiction executable binaries”bashxandfictionexecutable binariesTerminal window ln -s $(pwd)/fiction.so.sh /usr/bin/fiction && chmod +x /usr/bin/fictionln -s $(pwd)/modules/bashx /usr/bin/bashx && chmod +x /usr/bin/bashx -
Start the server
Section titled “Start the server”Terminal window fiction devFiction would automatically load and execute the main file with
bashxTerminal window bash src/index.shxYou can also use bashx directly to start the file
Terminal window bashx src/index.shx -
Check if the server is working
Section titled “Check if the server is working”Open
<server IP>:8080in your browser; If you see the default page, Fiction is working and you can start editing the code inindex.shxfile insrcfolder.