wrench-turn

command module
v1.0.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

README

Wrench Turn

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.

Branches

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 vX.X.X[-stage]: particular version/release, e.g. v1.0.0-alpha, v.4.2.0

Running (Production)

Clone repo, open in terminal git clone https://github.com/okdv/wrench-turn.git cd wrench-turn

Docker

Using Docker Compose

sudo docker-compose up

Bare metal

Must have Golang and Node installed

Backend

Build with go

go build

Start backend

./wrench-turn

Open frontend directory

cd frontend

Install

npm install

Frontend (static build)

Build frontend (creates static app with svelte-static-adapter)

npm run build

Run the generated build dir (/wrench-turn/frontend/build) with the desired web server, such as NGINX

Frontend (svelte preview)

If you simply want to use Node to render the frontend for development, run

npm run preview

Contributing

  1. Fork repository
  2. Clone your fork
    • git clone https://github.com/your-username/wrench-turn.git && cd wrench-turn
  3. Create a branch off of the develop branch for what you're working on at that time
    • git checkout -b super-cool-feature develop
  4. Commit and push
    • git add . && git commit -m "feat: super awesome feature #420" && git push origin super-cool-feature
    • Note: git pre-commit hook will attempt to run go build, go test successfully before committing
  5. Open a PR requesting to merge your feature branch with our develop branch, and wait for review

Please follow this git commit message format

<type: chore, feat, fix>: <description> <rel issue number>

e.g. chore: cleaning up comments, feat: adding calendar feature #13, fix: home button deletes all data #16

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL