# @lenra/app-server

> Lenra's app server lib

Latest version **1.0.0-beta.6** (published 2023-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lenra/app-server
pnpm add @lenra/app-server
yarn add @lenra/app-server
bun add @lenra/app-server
```

Provides the command `app-lenra`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-beta.6 |
| Published | 2023-09-15 |
| First published | 2023-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 63.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lenra |
| Maintainers | flavien_lenra, taorepoara |
| Keywords | Lenra, app, application, lib |

## Links

- npm: https://www.npmjs.com/package/@lenra/app-server
- Repository: https://github.com/lenra-io/app-lib-js
- Homepage: https://github.com/lenra-io/app-lib-js.git#readme
- Issues: https://github.com/lenra-io/app-lib-js/issues
- npm.io page: https://npm.io/package/@lenra/app-server

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^1.3.6
- [express](https://npm.io/package/express.md) ^4.18.1
- [@lenra/components](https://npm.io/package/@lenra/components.md) ~1.0.0-beta.7

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.0.0-beta.6 (latest) — 2023-09-15
- 1.0.0-beta.5 — 2023-09-15
- 1.0.0-beta.4 — 2023-06-23
- 1.0.0-beta.3 — 2023-05-26
- 1.0.0-beta.2 — 2023-05-15
- 1.0.0-beta.1 — 2023-04-25
- 1.0.0-alpha.3 — 2023-04-18
- 1.0.0-alpha.2 — 2023-04-18
- 1.0.0-alpha.1 — 2023-04-18

## README

<div id="top"></div>
<!--
*** This README was created with https://github.com/othneildrew/Best-README-Template
-->



<!-- PROJECT SHIELDS -->
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]



<!-- PROJECT LOGO -->
<br />
<div align="center">

<h3 align="center">App Lib for javaScript based projects</h3>

  <p align="center">
    This lib integrates Express server and all the elements the app needs in order to only keep the views, listeners and resources in the app project.
    <br />
    <br />
    <a href="https://github.com/lenra-io/app-lib-js/issues">Report Bug</a>
    ·
    <a href="https://github.com/lenra-io/app-lib-js/issues">Request Feature</a>
  </p>
</div>


<!-- USAGE EXAMPLES -->
## Usage

To incorporate it into your Lenra app project, simply run the following command:
```console
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:
```js
class CustomType extends Data {
    /**
     * @param {string} value
     */
  constructor(value) {
    this.value = value;
  }
}

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

<p align="right">(<a href="#top">back to top</a>)</p>



<!-- CONTRIBUTING -->
## 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!

<p align="right">(<a href="#top">back to top</a>)</p>



<!-- LICENSE -->
## License

Distributed under the **MIT** License. See [LICENSE](./LICENSE) for more information.

<p align="right">(<a href="#top">back to top</a>)</p>



<!-- CONTACT -->
## Contact

Lenra - [@lenra_dev](https://twitter.com/lenra_dev) - contact@lenra.io

Project Link: [https://github.com/lenra-io/app-lib-js](https://github.com/lenra-io/app-lib-js)

<p align="right">(<a href="#top">back to top</a>)</p>


<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[contributors-shield]: https://img.shields.io/github/contributors/lenra-io/app-lib-js.svg?style=for-the-badge
[contributors-url]: https://github.com/lenra-io/app-lib-js/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/lenra-io/app-lib-js.svg?style=for-the-badge
[forks-url]: https://github.com/lenra-io/app-lib-js/network/members
[stars-shield]: https://img.shields.io/github/stars/lenra-io/app-lib-js.svg?style=for-the-badge
[stars-url]: https://github.com/lenra-io/app-lib-js/stargazers
[issues-shield]: https://img.shields.io/github/issues/lenra-io/app-lib-js.svg?style=for-the-badge
[issues-url]: https://github.com/lenra-io/app-lib-js/issues
[license-shield]: https://img.shields.io/github/license/lenra-io/app-lib-js.svg?style=for-the-badge
[license-url]: https://github.com/lenra-io/app-lib-js/blob/master/LICENSE

---
_Source: https://npm.io/package/@lenra/app-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
