sightreading.training icon indicating copy to clipboard operation
sightreading.training copied to clipboard

Instructions to make in work

Open profesorasix opened this issue 5 years ago • 8 comments

Hello, Thanks for this piece of software, I love it. I'd like to add some new features, but first I need to get it working. There are too many new things in this project, React, lua, moonscript. I tried to make in work installing luarocks, lua, react, node,etc.. but seems that some dependencies are broken.

Can anyone provide some brief instructions to make it run. Thanks in advanced.

profesorasix avatar Mar 13 '20 10:03 profesorasix

That exactely is the problem for us, who want to contribute. I asked about the same question just about a year ago, but got no response. leafo seems to be busy with other projects or simply has lost interest in the project, which to some extent I can understand if you see that most of the people are highly motivated, sometimes asking for new features but in the end stop using the tool after a few days, maybe a week.

I finally ended up setting up my own server and working on the resulting js which is a pita but works for me. have a look into my post #71 if You're interested in more details

kind regards

Frank regards

ddTech avatar Mar 13 '20 12:03 ddTech

Hi @ddTech. It's good to know that there are more people interested in this project. How did you manage to make it work? Can you write a brief set up guide? Regards

profesorasix avatar Mar 13 '20 13:03 profesorasix

Hi, not really, unfortunattely. As I mentioned in my post I am using a server that we use for other projects and which received some code to mimic the original behavior. I'm not working with the codes from this repo, but with the resulting main.js (and lib.js) instead. This is totally proprietary and was never meant to become a permanent solution. The server is neither, iis, Apache nor node. Nothing You could download or setup. it's our own creation for a specific task which just happened to be available and flexible enough to get this up and running.

regards

Frank

ddTech avatar Mar 13 '20 14:03 ddTech

I got the basic app working (didn't check login and stats as I don't use them). I wanted to leave some breadcrumbs (this is not a step-by-step but more of a stream of conciousness of what I remember from the setup) for launching it yourself:

  1. After cloning the repo, run npm install, then try getting the ./ci.sh script to complete without errors. To do this, you'll need:
  • luarocks installed
  • libssl-dev (to avoid the "CRYPTO header" errors) https://github.com/leafo/lapis/issues/632#issuecomment-501306531
  • discount or lua-discount (this is a markdown compiler library) to avoid the "DISCOUNT header missing" errors
  1. After ci.sh runs successfully (if you run it a second time there'll be errors that "something already exists" because you're running it for the 2nd time - they're ok to ignore), run ./build.sh (maybe lua-discount was needed on this step, not the first one?)

  2. Run $ lapis server then go to localhost:9090. The env vars for nginx.conf come from the config.moon file


If you're trying to add a new feature and modified some .jsx files in the repo, after writing the .jsx run $ ./build.sh again then refresh the page (lapis server can keep running. No need to restart)

sethidden avatar Aug 15 '22 16:08 sethidden

Thank you, it's work. But Midi keyboard not detected on Mac Os Big Sure

MIDI support not detected on your computer. You'll only be able to use the on-srcreen keyboard and build in synthesizer. (Try Chrome for MIDI device support)

vaiosx avatar Jul 13 '23 16:07 vaiosx

I got the basic app working (didn't check login and stats as I don't use them). I wanted to leave some breadcrumbs (this is not a step-by-step but more of a stream of conciousness of what I remember from the setup) for launching it yourself:

  1. After cloning the repo, run npm install, then try getting the ./ci.sh script to complete without errors. To do this, you'll need:
  1. After ci.sh runs successfully (if you run it a second time there'll be errors that "something already exists" because you're running it for the 2nd time - they're ok to ignore), run ./build.sh (maybe lua-discount was needed on this step, not the first one?)
  2. Run $ lapis server then go to localhost:9090. The env vars for nginx.conf come from the config.moon file

If you're trying to add a new feature and modified some .jsx files in the repo, after writing the .jsx run $ ./build.sh again then refresh the page (lapis server can keep running. No need to restart)

Please tell me what is your NodeJS version installed, and which version of npm.

vaiosx avatar Jul 13 '23 18:07 vaiosx

@vaiosx It was Node 16 I think.

I made a fork that's slightly easier to install: https://git.0x2f.pl/rt/sightreading.training

sethidden avatar Jul 29 '23 10:07 sethidden

@vaiosx It was Node 16 I think.

I made a fork that's slightly easier to install: https://git.tagisow.dev/rt/sightreading.training

I was able to run the original fork on my server, but ran into a problem that the system needs httpS protocol, through the usual http all this does not work.

And you are good that you simplified the original fork and modified it, I read the description, I liked it, I will have to try it. One more improvement I would recommend is to make the notes not WHOLE, but quarter notes. Whole notes are very rare in musical notation, so it doesn't make sense for the brain to do such a trick on whole notes.

vaiosx avatar Jul 29 '23 10:07 vaiosx