-
Notifications
You must be signed in to change notification settings - Fork 0
Development
Peter J McDade edited this page Feb 2, 2026
·
2 revisions
For those who want to expand the factory and contribute blueprints!
The backend is a Go REST API that also serves the React frontend.
| Route | Description |
|---|---|
/ |
π Frontend application |
/api/* |
βοΈ REST API endpoints |
/ws |
π‘ WebSocket for real-time updates |
Before accessing the API, you need to authenticate (like inserting a keycard):
# Login and save cookie
curl --cookie-jar cookie.txt --insecure \
--data '{"username":"admin","password":"factorio"}' \
-H "Content-Type: application/json" \
-X POST https://localhost/api/login
# Use the cookie for subsequent requests
curl --cookie cookie.txt --insecure https://localhost/api/server/status| Tool | Version |
|---|---|
| πΉ Go | 1.11+ |
| π¦ NodeJS | 10.13.0+ |
Create release zips for Windows and Linux:
git clone git@github.com:petejm/factorio-server-manager.git
cd factorio-server-manager
make gen_releaseThis produces:
build/factorio-server-manager-linux.zipbuild/factorio-server-manager-windows.zip
Quick build for testing:
git clone git@github.com:petejm/factorio-server-manager.git
cd factorio-server-manager
make
./factorio-server-manager/factorio-server-manager --dir /path/to/factorioThe frontend uses React with Webpack.
| Command | Description |
|---|---|
npm run dev |
π§ Development build with source maps |
npm run watch |
π Auto-rebuild on file changes |
npm run hot |
π₯ Hot reload (in theory) |
npm run build |
π¦ Production build (minified) |
cd factorio-server-manager
npm install
npm run watch # In one terminal
# In another terminal, run the Go server
cd src && go run . --dir /path/to/factorioOutput files:
-
app/bundle.jsβ Transpiled JavaScript -
app/style.cssβ Compiled styles
-
π₯ Download and unzip the source code
-
π¦ Install requirements:
-
π¨ Build the backend:
cd factorio-server-manager\src go build
-
π¨ Build the frontend:
cd factorio-server-manager npm install npm run build
-
π Run:
.\src.exe --dir C:\path\to\Factorio
-
π Visit localhost:8080
factorio-server-manager/
βββ app/ # π Built frontend assets
βββ docker/ # π³ Docker configurations
βββ src/ # πΉ Go backend source
β βββ api/ # REST API handlers
β βββ bootstrap/ # Configuration & startup
β βββ factorio/ # Factorio server control
βββ ui/ # βοΈ React frontend source
β βββ App/ # React components
β βββ api/ # API client
βββ Makefile # π¨ Build automation
βββ conf.json # βοΈ Default configuration
- π΄ Fork the repository
- πΏ Create a feature branch
- π» Make your changes
- β Test thoroughly
- π¬ Submit a pull request
The factory always has room for more engineers! π·