BlockliveScratch / Blocklive

Realtime Collaboration Chrome Extension for Scratch.mit.edu. tags: Liveshare live collab rtc
27 stars 16 forks source link

How to compile? #9

Open kokofixcomputers opened 4 months ago

kokofixcomputers commented 4 months ago

I wanted to fix some issues but i want to try to compile the backend to test. How do i do that? i ran: git clone (my repo) npm install

and now what?

please tell me. thanks

MeechaPooch commented 4 months ago

cd into ./backend and run npm install, then run node . to start the server

kokofixcomputers commented 4 months ago

cd into ./backend and run npm install, then run node . to start the server

okay thanks!

kokofixcomputers commented 4 months ago

@MeechaPooch what about the secrets.zip?

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/ct/Git/Blocklive/backend/secrets/secrets.js' imported from /Users/ct/Git/Blocklive/backend/discord-webhook.js
    at finalizeResolution (node:internal/modules/esm/resolve:265:11)
    at moduleResolve (node:internal/modules/esm/resolve:933:10)
    at defaultResolve (node:internal/modules/esm/resolve:1157:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)
    at link (node:internal/modules/esm/module_job:86:36) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///Users/ct/Git/Blocklive/backend/secrets/secrets.js'
}
MeechaPooch commented 5 days ago

use the example file https://github.com/BlockliveScratch/Blocklive/blob/master/backend/secrets-example/secrets.js

kokofixcomputers commented 5 days ago

okay thanks!