Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/themost-framework/core
@themost core data objects
https://github.com/themost-framework/core
Last synced: about 6 hours ago
JSON representation
@themost core data objects
- Host: GitHub
- URL: https://github.com/themost-framework/core
- Owner: themost-framework
- Created: 2023-09-21T06:38:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-08T09:58:39.000Z (8 days ago)
- Last Synced: 2024-11-08T10:43:56.734Z (8 days ago)
- Language: JavaScript
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @themost/core
`@themost/core` is a core data object library for the [@themost-framework](https://github.com/themost-framework/). It provides essential classes and utilities for building data-driven applications.
## Installation
To install the package, use npm:
```sh
npm i @themost/core
```## Usage
This package includes several models:
- Thing: The most generic type of item.
- Account: Inherits from Thing, represents user accounts.
- User: Inherits from Account, represents individual users.
- Group: Inherits from Account, represents groups of users.
- Permission: Represents permissions assigned to accounts.
- Workspace: Represents workspaces within the application.`@themost/core` exports a schema loader for loading those generic data models and start using them inside application.
```javascript
import {SchemaLoader} from '@themost/core';
import {DataApplication, DataConfigurationStrategy, SchemaLoaderStrategy} from '@themost/data';
// create application
const app = new DataApplication(process.cwd());
// get schema loader strategy
const strategy = app.getConfiguration().getStrategy(SchemaLoaderStrategy);
// add @themost/core schema loader
strategy.loaders.push(new SchemaLoader(this.getConfiguration()));
```## License
This project is licensed under the BSD-3-Clause License. See the LICENSE file for details.
## Contributing
Contributions are welcome! Please open an issue or submit a pull request on [GitHub](https://github.com/themost-framework/core/issues).
## Contact
For any questions or issues, please open an issue on [GitHub](https://github.com/themost-framework/core).