1.3.0 • Published 2 months ago

@lenra/app v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Contributors Forks Stargazers Issues MIT License

Usage

To incorporate it into your Lenra app project, simply run the following command:

npm i @lenra/app-server

Lenra API calls

To call a Lenra API from a listener, utilize the Api instance provided as the third parameter in your listener function.

You can then create a document using the data API with the following code:

class CustomType extends Data {
    /**
     * @param {string} value
     */
  constructor(value) {
    this.value = value;
  }
}

const myDoc = await api.data.coll(CustomType).createDoc(new CustomType("Hello world"));

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please open an issue with the tag "enhancement". Don't forget to give the project a star if you liked it! Thanks again!generate

Generate classes

A part of this lib is generated from the Lenra API. To generate the classes, run the following commands:

# Load API
## With wget
wget https://github.com/lenra-io/api/releases/latest/download/load-api.sh -O - -q | bash
## With curl
curl -fsSL https://github.com/lenra-io/api/releases/latest/download/load-api.sh | bash
# generate
npm run generate

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Lenra - @lenra_dev - contact@lenra.io

Project Link: https://github.com/lenra-io/app-lib-js

1.3.0

2 months ago

1.2.0

3 months ago

1.1.2

4 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.0

7 months ago

1.0.0-beta.17

8 months ago

1.0.0-beta.16

8 months ago

1.0.0-beta.15

8 months ago

1.0.0-beta.14

8 months ago

1.0.0-beta.13

8 months ago

1.0.0-beta.12

8 months ago

1.0.0-beta.11

8 months ago

1.0.0-beta.10

8 months ago

1.0.0-beta.9

8 months ago

1.0.0-beta.8

8 months ago

1.0.0-beta.7

8 months ago