Enable build support by adding .onedev-buildspec.yml
.github/workflows Loading last commit info...
.run
assets
client
server
.editorconfig
.gitignore
.yarnrc.yml
README.md
package.json
sonar-project.properties
yarn.lock
README.md

triffgonix

Quality gate

ai image

^ this logo is ai generated, but if you got a better one i'm open for suggestions : )

what it is about

at work i had the task to mentor an intern into making a real-time dart application for our team. while teaching him vue and quasar among other things, i wasn't really content with the way we went about the whole project.

therefore i wanted to give it my own spin, using go instead of pocketbase and nuxt instead of quasar for the frontend. the real-time functionality will, at least so i think, be implemented using web sockets

setup

install needed dependencies and yarn workspace setup:

# install node dependencies and sets up yarn workspaces as well as installing yarn package manager
yarn install

# installs go dependencies
yarn install:dependencies

tools

this project is made with the GONUTS stack (yeah i know, really creative right?)

GO - well for golang in the backend.

NU - nuxt for the frontend, in the end this means vue.

TS - this can mean two things, typescript which is used in nuxt, but more importantly tailwindcss as the css and ui framework.

this means to run triffgonix you need a node environment and have go installed on your system.

run project

run the start intellij run configuration or use following yarn command:

yarn start:dev

you can only start the frontend using the start:client intellij run configuration or following yarn command:

yarn start:client

you can only start the backend using the start:server intellij run configuration or following yarn command:

yarn start:server

server tests

the backend has unit tests, crazy right? at the moment i mainly use unit tests to develop and assure functionality of the engine package.

you can run those tests using the test:server intellij run configuration or following yarn command:

yarn server:test

you can even get a testing coverage for the package using the test:server intellij run configuration with "run with coverage" or following yarn command instead:

yarn server:coverage

this will open the code coverage in your default browser.

generate openapi client

install swaggo for golang to generate swagger doc using godoc:

go install github.com/swaggo/swag/cmd/swag@latest

then you can generate the whole api client using following command:

yarn generate:api

this will generate the openapi spec from the backend as well prior to the fetch client

Please wait...
Page is in error, reload to recover