Self-hosted, flexible maintenance tracker for your cars, bikes, and everything in between
WARNING: This project is under active development in an alpha state, effectively an MVP. Would not recommend using yet unless you plan to contribute in some way, otherwise a beta release will be coming soon. This will be where everyday self hosters would likely benefit from the service.
develop
: The latest, unstable, branch. Where all commits are made to, and where all contributing branches are branched from. Though tested first, likelihood of broken things is fairly good.
main
: stable channel/branch. should pretty much always match the latest release branch
release-vX.X.X[-stage]
: particular version/release, e.g. v1.0.0-alpha, v.4.2.0
1) Clone repo, open in terminal: git clone https://github.com/okdv/wrench-turn.git && cd wrench-turn
2) Create .env.production
file from .env.development
: cp .env.development .env.production
3) Edit .env.production
accordingly, need to change the below, but other vars may need editing depending on implementation:
NODE_ENV=production
JWT_KEY=YOUR_CUSTOM_SECRET_KEY_DONT_COMMIT_OR_LEAVE_DEFAULT
4) Edit compose.yaml
accordingly, mainly port mapping. .env.production
should match port mapping in compose.yaml
.
5) Build and run sudo docker-compose up
4) Install go
Note: check the image version used in backend.Dockerfile if unsure which version to use. Usually assume latest stable version.
5) Run go build
, may need to adjust commands for your particular OS
6) Run generated build, ./wrench-turn
, ./wrench-turn.exe
, etc.
7) Install node or nvm
Note: check the image version used in frontend.Dockerfile if unsure which version to use. Usually assume latest stable version.
8) open frontend cd frontend
9) Install node modules npm i
10) Run node build npm run build
11) Run the generated build dir (/wrench-turn/frontend/build) with the desired web server, such as NGINX
11) Run npm run preview