mirror of
https://github.com/xodio/xod.git
synced 2026-03-14 12:46:54 +01:00
f12e84e716fe0f3f8ff32edf07c76e7e9fa26a16
XOD
Deployment on localhost
Install all dependencies and perform package cross-linking with:
$ npm install
$ npm run build
Browser IDE
$ npm run dev -- xod-client-browser
Open http://localhost:8080 in your browser.
Desktop IDE
$ npm run build -- xod-client-electron
$ npm run start:xod-client-electron
Hub Server
Start MongoDB with default network settings. Then:
$ npm run start:xod-server
Open http://localhost:3000/explorer/ to interact with REST API.
Maintenance Scripts
Cleaning
npm run clean:distremoves all build artifactsnpm run clean:node_modulesremoves all installednode_modulesin all packagesnpm run cleanresets the sandbox to just-cloned state
Verification
npm run lintperforms lint-checking in all packagesnpm run test -- <name> --onlyruns test on package with specified<name>. E.g.npm run test -- xod-client --only.npm run test -- <name>runs test on package with specified<name>, and all packages it depends on directly or indirectly. E.g.npm run test -- xod-client.npm testtests all packagesnpm run verifybuilds lints and tests; run this prior to pull requestnpm run ciinstalls and verifies; used as a script for CI-server
Building
npm run buildbuilds all packagesnpm run build -- <name> --onlybuilds a package with specified<name>, e.g.npm run build -- xod-core --onlynpm run build -- <name>builds a package with specified<name>and all its dependencies, e.g.npm run build -- xod-client-electronnpm run dev -- <name> --onlybuilds a package with specified<name>and stays in watch mode with auto-rebuild when its files change, e.g.npm run dev -- xod-core --onlynpm run dev -- <name>builds a package with specified<name>and all its dependencies, then stay in watch mode looking for changes in that package or any of its dependencies; e.g.npm run dev -- xod-client-browser
Packaging
npm run bootsrapcreates all necessary links between local packages and installs their dependencies
Managing Data
All scripts chould be run from within xod-server directory.
$ cd xod-server
You should have MongoDB up and running.
To create a user in the DB:
$ npm run addUser <username> <email> <password>
To destroy all data and reset the DB to an initial state:
$ npm run reset
Contributing
Feel free to contribute to the project! The guidelines can be found here.
Jetbrains users can benefit from this XOD Jetbrains Live Template.
Description
Languages
JavaScript
78.9%
C++
11.7%
Reason
4.9%
SCSS
4.2%
Shell
0.1%