Git Product home page Git Product logo

agent-js's Introduction

agent-js

Use an Agent to interact with the Internet Computer from your JavaScript program.

This source code repository contains multiple npm packages, each under ./packages/.

Development

Getting Started

  1. Clone the git repository.
  2. Run npm i -g npm
  3. Run npm install

After that, you probably want to dive into a specific package in ./packages.

Workspaces

We use npm to manage this repo and its packages. A few useful commands to keep in mind;

  • To run the unit tests locally, you can use npm run test.
  • To run e2e tests, you can use npm run e2e. WARNING: You need to have a running replica locally. In our CI runs, we use the ic-ref which is not (at this time) available publicly. Normally you can use a replica distributed with dfx (ie. dfx start in a project), but there is no guarantee that the next branch will work with the latest published dfx. Once you have a replica running locally, you must pass the port to the e2e tests using the REPLICA_PORT environment vairable. If that variable is not set, the tests will fail.

bin/* scripts

The following scripts can be found in ./bin:

Monorepo-related scripts run in this order, but are usually invoked by npm install:

  • npm-postinstall - Run with npm run postinstall in this monorepo package.
    • It copies devtools dependencies from ./packages/agent-js-devtools/node_modules -> ./node_modules
  • build - Build (npm run build) each subpackage in ./packages/
  • test - Run npm test in each subpackage

Contributing

Contributions are welcome! Please refer to the CONTRIBUTING.md, where you can find more details about:

  • Setting up the repository, making changes, documenting these changes, adherence to automated formatting like prettier, and Continuous Integration, which is facilitated by GitHub Actions.
  • Information about our review process.
  • The release process, publishing to NPM, and publishing docs.
  • The process for deprecating packages in this repository.

License

This project is licensed under the Apache-2.0 License.

agent-js's People

Contributors

krpeacock avatar hansl avatar chenyan-dfinity avatar dependabot[bot] avatar hpeebles avatar github-actions[bot] avatar frederikrothenberger avatar peterpeterparker avatar ericswanson-dfinity avatar ielashi avatar rvanasa avatar sea-snake avatar dfx-json avatar gobengo avatar nmattia avatar ninegua avatar oggy-dfin avatar jzxchiang1 avatar wackyleo459 avatar roman-kashitsyn avatar andrewwylde avatar daniel-bloom-dfinity avatar nomeata avatar lwshang avatar bitdivine avatar p-shahi avatar 3cl1p5e7 avatar mstrasinskis avatar mraszyk avatar megrogan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.