Skip to content

maizy/sightreading.training

 
 

Repository files navigation

Pianistica

Fork of Sight Reading Trainer.

All kudos go to original sightreading.training written by @leaf.

Static version

https://pianistica.maizy.ru/

In this fork

Branch Description
setup-fork Fork setup, fix file names for macOS
iss4-serverless-build Serverless version: build docker container
iss5-macos-dev-support Dev automation for serverless version, especially for macOS
iss5-ios-support iOS + Web MIDI Browser support (written by @MaienM)
iss4-python-guides-converter Remove lua requirements for building statics, use python instead. Lightweight final docker image.
disable-backend Disable lua files compiling
iss11-notes-label Show notes label
iss14-decrease-octave-num decrease octave number (ex: C5 -> C4). done with a very dirty hack.
iss21-fork-rename fork renamed to Pianistica, lua backend removed, static version added, upgraded from upstream

Serverless version

Version without lua backend. Only nginx serving statics.

Prebuild containers for releases

https://github.com/users/maizy/packages/container/package/pianistica

docker run -d --name=pianistica --restart=always \
    -p 8080:80 ghcr.io/maizy/pianistica:latest

Build

docker build -t pianistica:latest .

Run

docker run -p 127.0.0.1:8080:80 pianistica:latest

Server started at http://127.0.0.1:8080/

Dev env on macOS

1.

brew install --cask osxfuse # restart may required
brew install sassc nvm tup python
python -m pip install -r requirements.txt

2. setup nvm, install nodejs 14.15.x, init node modules

See brew info nvm for nvm setup instructions.

nvm install 14.15.3
nvm use 14.15.3
node --version
# v14.15.3
npm --version
# 6.14.9

3. init tup DB

tup init

4. update libs & generated files

npm install
tup

Extra: reinit tup generated files

rm -rf .tup/
./cleanup.sh

Then do steps #3, 4 again.

Run dev serverless version

1. Install docker-compose

2. Build all static

For macOS see instruction above.

3. Run

docker-compose -f dev-docker-compose.yml up

4. Go to

http://127.0.0.1:8080/

4. After any changes

Run tup for regenerating files

tup

or use tup monitor if you on linux.

About

fork of sightreading.training with some fixes

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 74.3%
  • CSS 12.7%
  • MoonScript 10.3%
  • HTML 0.9%
  • TSQL 0.8%
  • Makefile 0.3%
  • Other 0.7%