A tool to help manage Factorio multiplayer servers including mods and save games.
Go to file
2016-05-04 17:02:56 +01:00
app Delete avatar2.png 2016-05-04 17:02:56 +01:00
docker Update Factorio version 2016-05-03 16:25:41 -04:00
ui correct label on server control component 2016-05-02 14:00:14 -04:00
.gitignore moved conffile flag to flagParse() 2016-05-03 12:32:03 -04:00
auth.go added logout, improved login and logout ui 2016-04-30 17:48:45 -04:00
conf.json.example added handlers for login, logout, checking user status, added checks in ui to redirect to login page 2016-04-30 14:35:10 -04:00
gameconfig.go improved ui for config route, added error reporting to json responses 2016-04-24 19:07:00 -04:00
gamelog.go added handler for tailing game log file 2016-04-18 12:39:09 -04:00
handlers.go fixed bug in toggling mods issue #23 2016-05-03 13:31:07 -04:00
LICENSE.md added license, updated readme 2016-04-19 23:16:36 -04:00
main.go moved conffile flag to flagParse() 2016-05-03 12:32:03 -04:00
Makefile Added flag for config file 2016-05-03 11:56:06 -04:00
mods.go fixed bug in toggling mods issue #23 2016-05-03 13:31:07 -04:00
README.md Update README.md 2016-04-30 21:15:24 -04:00
routes.go added handlers for login, logout, checking user status, added checks in ui to redirect to login page 2016-04-30 14:35:10 -04:00
saves.go added handlers and views for uploading and removing mods and saves 2016-04-21 11:05:28 -04:00
server.go Added flag for config file 2016-05-03 11:56:06 -04:00

#Factorio Server Manager

###A tool for managing Factorio servers. This tool runs on a Factorio server and allows management of the Factorio server, saves, mods and many other features.

Features

  • Allows control of the Factorio Server, starting and stopping the Factorio binary.
  • Allows the management of save files, upload, download and delete saves.
  • Manage installed mods, upload new ones, delete uneeded mods. Enable or disable individual mods.
  • Allow viewing of the server logs and current configuration.
  • Authentication for protecting against unauthorized users
  • Available as a Docker container

Installation

  1. Download the latest release
  1. Download the Factorio Standalone server and install to a known directory.
  2. Run the server binary file, use the --dir flag to point the management server to your Factorio installation.
  • ./factorio-server-manager --dir /home/user/.factorio
  1. Visit localhost:8080 in your web browser.

Usage

Run the UI server and specify the directory of your Factorio server installation and the interface to run the HTTP server on. Edit the conf.json file with your desired credentials for authentication.

Usage of ./factorio-server-manager:
  -bin string
        Location of Factorio Server binary file (default "bin/x64/factorio")
  -config string
        Specify location of Factorio config.ini file (default "config/config.ini")
  -dir string
        Specify location of Factorio directory. (default "./")
  -host string
        Specify IP for webserver to listen on. (default "0.0.0.0")
  -max-upload int
        Maximum filesize for uploaded files. (default 100000)
  -port string
        Specify a port for the server. (default "8080")

Example:

./factorio-server-manager --dir /home/user/.factorio --host 10.0.0.1

Manage Factorio Server

Factorio Server Manager Screenshot

Manage save files

Factorio Server Manager Screenshot

Manage mods

Factorio Server Manager Screenshot

Development

The backend is built as a REST API via the Go web application.

It also acts as the webserver to serve the front end react application

All api actions are accessible with the /api route. The frontend is accessible from /.

Requirements

  • Go 1.6
  • NodeJS 4.2.6

Building the Go backend

Go Application which manages the Factorio server.

API requests for managing the Factorio server are sent to /api.

The frontend code is served by a HTTP file server running on /.

git clone https://github.com/MajorMJR/factorio-server-manager.git
cd factorio-server-manager
go build

Building the React frontend

Frontend is built using React and the AdminLTE CSS framework. See app/dist/ for AdminLTE included files and license.

The root of the UI application is served at app/index.html. Run the npm build script and the Go application during development to get live rebuilding of the UI code.

All necessary CSS and Javascript files are included for running the UI.

Transpiled bundle.js application is output to app/bundle.js, 'npm run build' script starts webpack to build the React application for development

 install nodejs (use nvm)
 cd ui/
 npm install
 npm run build
 Start factorio-server-manager binary in another terminal

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details