RoepStoep / lidraughts

lidraughts.org: the forever free, adless and open source draughts server
https://lidraughts.org
GNU Affero General Public License v3.0
105 stars 11 forks source link

Onboarding? #4

Closed lw1990 closed 6 years ago

lw1990 commented 6 years ago

Can someone explain the steps for setting up a development environment for this project?

ddugovic commented 6 years ago

I've started on https://github.com/ddugovic/lichocker/tree/openjdk-draughts but still have work to do...

lw1990 commented 6 years ago

I noticed that, but that doesn't even explain how to get it working without docker. It seems as if lichess is designed to be developed with linux, and lidraughts is designed to be developed with windows (out of the box). lidraughts has dev.bat and build.bat, which are windows files.

I have windows 10, and all of the 'prerequisites' from lichess (windows) onboarding like sbt, but I can't seem to get it to work.

lw1990 commented 6 years ago

I tried following the lichess (windows) onboarding closely except modifying for lidraughts (for example, in the application.conf and nginx server block)

The app compiles and at localhost:9663 I can see the empty dashboard/lobby, but I can't start a match or do anything like register (mongod and nginx are both running, I've set up lichess before)

The problem seems to be ui/build.bat, which throws a bunch of errors pasted below The errors suggested I needed typescript, I installed that npm install -g typescript The errors suggested I needed gulp, I installed that again and even did npm link gulp in the lidraughts directory Still the same result happened (exact same error log pasted below)

C:\git\lidraughts\ui>build.bat A subdirectory or file public\compiled already exists. yarn install v1.7.0 [1/4] Resolving packages... success Already up-to-date. Done in 0.72s. Building TypeScript: common The system cannot find the path specified. yarn run v1.7.0 error Command "compile" not found. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Building TypeScript: draughts The system cannot find the path specified. yarn run v1.7.0 error Couldn't find a package.json file in "C:\git" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Building TypeScript: ceval The system cannot find the path specified. yarn run v1.7.0 error Couldn't find a package.json file in "C:\" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Building TypeScript: game The system cannot find the path specified. yarn run v1.7.0 error Couldn't find a package.json file in "C:\" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Building TypeScript: tree The system cannot find the path specified. yarn run v1.7.0 error Couldn't find a package.json file in "C:\" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Building TypeScript: chat The system cannot find the path specified. yarn run v1.7.0 error Couldn't find a package.json file in "C:\" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Building TypeScript: draughtsground The system cannot find the path specified. yarn run v1.7.0 error Couldn't find a package.json file in "C:\" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Building: draughtsground stand alone The system cannot find the path specified. [05:37:05] Local gulp not found in C:\ [05:37:05] Try running: npm install gulp [05:37:05] Local gulp not found in C:\ [05:37:06] Try running: npm install gulp File not found - draughtsground.min.js 0 File(s) copied Building: site The system cannot find the path specified. [05:37:06] Local gulp not found in C:\ [05:37:06] Try running: npm install gulp Building: challenge The system cannot find the path specified. [05:37:07] Local gulp not found in C:\ [05:37:07] Try running: npm install gulp Building: notify The system cannot find the path specified. [05:37:07] Local gulp not found in C:\ [05:37:07] Try running: npm install gulp Building: round The system cannot find the path specified. [05:37:08] Local gulp not found in C:\ [05:37:08] Try running: npm install gulp Building: analyse The system cannot find the path specified. [05:37:08] Local gulp not found in C:\ [05:37:08] Try running: npm install gulp Building: editor The system cannot find the path specified. [05:37:09] Local gulp not found in C:\ [05:37:09] Try running: npm install gulp Building: puzzle The system cannot find the path specified. [05:37:09] Local gulp not found in C:\ [05:37:10] Try running: npm install gulp Building: lobby The system cannot find the path specified. [05:37:10] Local gulp not found in C:\ [05:37:10] Try running: npm install gulp Building: tournament The system cannot find the path specified. [05:37:11] Local gulp not found in C:\ [05:37:11] Try running: npm install gulp Building: tournamentSchedule The system cannot find the path specified. [05:37:11] Local gulp not found in C:\ [05:37:11] Try running: npm install gulp Building: tournamentCalendar The system cannot find the path specified. [05:37:12] Local gulp not found in C:\ [05:37:12] Try running: npm install gulp Building: simul The system cannot find the path specified. [05:37:12] Local gulp not found in C:\ [05:37:12] Try running: npm install gulp Building: perfStat The system cannot find the path specified. [05:37:13] Local gulp not found in C:\ [05:37:13] Try running: npm install gulp Building: dasher The system cannot find the path specified. [05:37:13] Local gulp not found in C:\ [05:37:13] Try running: npm install gulp Building: cli The system cannot find the path specified. [05:37:14] Local gulp not found in C:\ [05:37:14] Try running: npm install gulp Building: editor.min The system cannot find the path specified. [05:37:15] Local gulp not found in C:\ [05:37:15] Try running: npm install gulp

RoepStoep commented 6 years ago

all the steps of https://github.com/ornicar/lila/wiki/Lichess-Development-Onboarding-(Windows) should work for lidraughts

I think the problem is that you're not running the script from the project root, e.g. try C:\git\lidraughts>.\ui\build.bat

lw1990 commented 6 years ago

Running the script from the project root was the fix, thanks!