mirror of
https://github.com/xodio/xod.git
synced 2026-03-09 02:06:49 +01:00
2.8 KiB
2.8 KiB
XOD
Deployment on localhost
Install all dependencies and perform package cross-linking with:
$ npm install
Build the code:
$ npm run build
Browser IDE
$ npm run dev -- xod-client-browser
Open http://localhost:8080 in your browser.
Desktop IDE
$ 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! Make sure to read contribution guidelines.
Jetbrains users can benefit from XOD Jetbrains Live Template.