# Do the following for both subscriber & publisher folders
# create a database.
# Update the database credentials in .env.example file and save it.
# Set Your Keys and APi Keys in the .env.example file and save it.
# run the following commands in the root of the project to give your device root user access to run commands
$ chmod +x ./init-server.sh
$ chmod +x ./start-server.sh
$ chmod +x ./stop-server.sh
# initialize server before first ever startup
$ sudo ./init-server.sh
# wait till init is done then start server
# start server
$ sudo ./start-server.sh
# And you're good to go!
# publisher is now running on port 8000
# subscriber is now running on port 7000
# stop server
$ sudo ./stop-server.sh
For detailed explanation on how things work, check out Laravel docs.