Skip to content

A web app to easily add Jira worklogs (and to make a standalone Deno/React WebApp POC).

Notifications You must be signed in to change notification settings

jersou/jira-work-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jira-Work-Logger

A web app to easily add Jira worklogs (and to make a standalone Deno/React WebApp POC).

To run the WebApp :

First, you need deno : https://deno.land/#installation

The whole application is encapsulated in a single file, and could simply run with :

deno run --unstable --allow-net --allow-run https://raw.githubusercontent.com/jersou/jira-work-logger/main/dist/server.js --wait-and-close

Then, go to http://localhost:8000/ with a web browser (this page open at app start-up if you use the --allow-run parameter).

Then, set the configuration in the bottom part to get Jira Issues and add worklogs.

The --allow-run parameter can be skipped if you don't use Hamster and if you don't want the application to open in the default browser on startup.

If the script parameter --wait-and-close is present, the server will wait a frontend connection, and it will stop by itself as soon as the frontend is closed (a websocket check this).

Install (by Deno)

deno install --name jira-work-logger  --unstable --allow-net --allow-run https://raw.githubusercontent.com/jersou/jira-work-logger/main/dist/server.js --wait-and-close

Then, simply run jira-work-logger

Permissions

  • --unstable : permission check
  • --allow-net : to serve HTTP, send request to Jira server, and run Websocket (if --wait-and-close). You can adjust this permission: --allow-net=127.0.0.1:8000,0.0.0.0:8001,my.own.domain.jira
  • --allow-run (optional) : to open the frontend in the default web browser and call Hamster on "Import from Hamster" button click, this feature use Deno-Opn

To update the WebApp :

Once run one time, the app is cached by Deno, to update the app :

deno cache --reload --unstable https://raw.githubusercontent.com/jersou/jira-work-logger/main/dist/server.js

or add the --reload parameter to the run command

Screenshot

screenshot

Dependencies

Make the bundle file

git clone https://github.com/jersou/jira-work-logger.git
cd jira-work-logger/frontend
#nvm use v14.17.0
npm install
npm run build
cd ../bundler/
deno run --unstable --allow-read --allow-write filesContentGenerator.ts
cd ..
deno bundle --unstable backend/server.ts dist/server.js
deno run --unstable --allow-net --allow-run dist/server.js

Make the binary file

 deno compile --unstable --allow-net --allow-run --target x86_64-unknown-linux-gnu --output bin/Linux/Jira-Work-Logger       backend/server.ts --wait-and-close
 deno compile --unstable --allow-net --allow-run --target x86_64-pc-windows-msvc   --output bin/Windows/Jira-Work-Logger.exe backend/server.ts --wait-and-close

About

A web app to easily add Jira worklogs (and to make a standalone Deno/React WebApp POC).

Topics

Resources

Stars

Watchers

Forks

Languages