Skip to content

EosFoundry/makeshift-ctrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

makeshift-ctrl

Desktop interface for the MakeShift

What is everything?

Everything is pain and under construction.

Setting up Development Environment

Required tooling:

NodeJS version management

Using nvm is optional but highly recommended to keep the chaos of node versioning somewhat contained.

Linuxs/MacOS: nvm - https://github.com/nvm-sh/nvm

Windows: nvm-windows - https://github.com/coreybutler/nvm-windows

nvm gotchas

Make sure to install the correct version of node as specified in makeshift-ctrl/.nvmrc

i.e. nvm install 16.17.0

The pinned version of node is always available in the .nvmrc, this documentation could be out of date!

IDE Setup

This project has been developed in emacs and vscode. For beginners, vscode is likely easier to start with.

VSCode

Download - https://code.visualstudio.com/

Windows Terminal terminal is optional but somewhat recommended. VSCode's internal terminal is often quite clunky.

Plugins:

Emacs

Download - https://www.gnu.org/software/emacs/

Emacs 28+ is highly recommended, native-comp speeds things up greatly. All Emacs development has been using Doom Emacs, it is untested under vanilla so some tinkering may be required to get code completion/etc. working.

Useful extensions:

Development First Steps

Once your environment is ready, you'll need to get the code through git.

Obtaining Code

Clone repo:

git clone https://github.com/EosFoundry/makeshift-ctrl.git

Install package dependencies

cd makeshift-ctrl/
npm install

Branch

Generally dev branch will contain the latest, likely-broken code that is being worked on. main is where stable commits are applied to.

Building and Runninng

Once you have the code, you're ready to run the dev server.

This section assumes the reader has set up a dev environment and has cloned the project

Running

Run the development server:

npm run dev

This will launch a live application that should respond to code changes after files are saved.

Building

Build a package:

npm run build

The build output can be found in ./release once the build completes, the options can be tweaked and fiddled with in ./electron-builder.yml - see https://www.electron.build/ for more details (however the documentation is... spotty).

Currently this project uses electron-builder, a move to electron forge is planned in the near future.

Directory Structure - AKA wtf are all these folders

Important directories are marked with an asterisk (*)

makeshift-ctrl/ --- main project folder
├── * node-src/   --- electron/nodejs source
│   ├── main/         --- main process code
│   └── preload/      --- preload/API setup code
|
├── * src/        --- UI source code
│   ├── assets/       --- resources that will be bundled by vite [2]
│   ├── components/   --- vue components
│   ├── composables/  --- vue functions
|
├── dist/       --- build process outputs
│   ├── client/       --- compiled UI files
│   └── node/         --- compiled electron/nodejs files
|
├── docs/       --- notes
├── examples/   --- example cues
├── out/        --- electron forge output
├── public/     --- loose files (directly routed in UI) [1]
├── scripts/    --- misc utility scripts
└── types/      --- emitted types from electron sources, this is used to read front end stuff

[1] - for more details on the public directory, see https://vitejs.dev/guide/assets.html#the-public-directory

[2] - for more details on how vite bundles assets, see https://vitejs.dev/guide/assets.html