Logistics tracker for Foxhole Game.
This is backend and frontend mono repo. Backend is written in go and located in go
, the front end is written in typescript and located in ts
.
A simple API test python script named api-test.py
is in this directory(not up to date).
This is a work in progress.
I aim to support:
- Invitation link to invite clans for admin
- Invitation link to invite members for clan leader
- Create, read, update, delete of stockpiles as well as its contents
- Reminder of soon-to-be expired stockpiles
- Stockpile sharing between friendly clans
- Stockpile history inside clan
- catalog tab or each section, like guns, shells, vehicles
- account page for setting password, delete account etc.
- clan admin manage page for kicking off memebers and add promote memebers to admin
- don't use cookie for account creating
- cache item icons in local storage
- stockpile item search
- ability for clan admin to publish item requests
- use discord api to notify expire stockpile
- polish UI (Long term)
Install go on your system
cd go/cmd/logi-tracker
go mod tidy
go build
./logi-tracker
Install yarn
cd ts
yarn
yarn start
Install nginx and put this inside the outmost {}
block in /etc/nginx/nginx.conf
server {
listen 6880;
server_name proxy_server;
location / {
proxy_pass http://localhost:3000;
}
location /api {
proxy_pass http://localhost:8080;
}
}
This assume the frontend listen on 3000 and backend listen on 8080.
then start nginx with sudo systemctl restart nginx
Access the website at http://127.0.0.1:6880.
You can use api-test.py
to create admin account on the first ever server start.
python -i api-test.py
>>> create_admin()
The default name is "admin" and password "12345678"