-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLI commands & datetime helpers in the Javascript SDK
- Loading branch information
Showing
21 changed files
with
734 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@rushdb/javascript-sdk': minor | ||
'rushdb-dashboard': minor | ||
'rushdb-core': minor | ||
'rushdb-website': minor | ||
'rushdb-docs': minor | ||
--- | ||
|
||
CLI commands & datetime helpers in the Javascript SDK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Code of Conduct | ||
|
||
We value open collaboration and respect in all interactions. To foster a welcoming and productive community, all participants are expected to adhere to the following guidelines. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies to all contributors, including maintainers, users, and collaborators, in all project spaces and public communication channels. | ||
|
||
## Our Standards | ||
|
||
1. **Respectful Communication** | ||
- Use welcoming and inclusive language. | ||
- Be respectful of differing viewpoints and experiences. | ||
- Refrain from personal attacks or derogatory comments. | ||
|
||
2. **Collaboration** | ||
- Provide constructive feedback and suggestions. | ||
- Share knowledge and help others grow within the community. | ||
|
||
3. **Responsibility** | ||
- Take responsibility for your actions and their impact on others. | ||
- Report issues or concerns to maintainers or moderators. | ||
|
||
4. **Inclusivity** | ||
- Actively seek to include and empower underrepresented groups. | ||
- Avoid biased or discriminatory behavior. | ||
|
||
## Unacceptable Behavior | ||
|
||
Examples of unacceptable behavior include: | ||
|
||
- Harassment, bullying, or intimidation. | ||
- Disrespectful, offensive, or inappropriate comments. | ||
- Discriminatory jokes or language. | ||
- Publishing private information without explicit permission. | ||
|
||
## Reporting Violations | ||
|
||
If you observe or experience behavior that violates this Code of Conduct, please report it by: | ||
|
||
- Contacting the project maintainer: [tg:onepx](https://t.me/onepx) | ||
- Messaging via LinkedIn: [linkedin.com/onepx](https://linkedin.com/in/onepx) | ||
|
||
We take all reports seriously and will investigate and address them promptly. | ||
|
||
## Enforcement | ||
|
||
Participants found to be in violation of this Code of Conduct may face actions such as: | ||
|
||
- A private warning or reprimand. | ||
- Temporary or permanent ban from project spaces. | ||
- Removal of contributions or privileges. | ||
|
||
## Acknowledgments | ||
|
||
This Code of Conduct is adapted from widely recognized community guidelines to reflect our commitment to a healthy and collaborative environment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Contribution Guidelines for RushDB | ||
|
||
Thank you for your interest in contributing to RushDB! To ensure a smooth contribution process, please follow the checklist below when reporting issues or submitting changes. | ||
|
||
## Reporting Issues | ||
|
||
When reporting an issue, include the following information: | ||
|
||
1. **Minimum Reproducible Data Set** | ||
- Provide a small JSON or CSV dataset if the issue is related to the core, dashboard, or SDK. | ||
- Ensure the dataset highlights the problem clearly. | ||
|
||
2. **RushDB Version** | ||
- Specify the version of RushDB you are using: | ||
- **Cloud**: Mention if you are using the latest cloud version. | ||
- **Self-hosted**: Provide the tag from Docker Hub or the SDK version. | ||
|
||
3. **Steps to Reproduce** | ||
- Give a detailed explanation of how to reproduce the issue. | ||
- Include any configurations, commands, or environment settings. | ||
|
||
4. **Query Examples** | ||
- If applicable, include specific queries that trigger the error. | ||
|
||
5. **Minimum Repository (if SDK-related)** | ||
- For issues related to the SDK, a minimal GitHub repository demonstrating the bug may be required. | ||
|
||
## Submitting Changes | ||
|
||
Before submitting a pull request: | ||
|
||
- Ensure your code adheres to the project's coding standards. | ||
- Include unit tests for new functionality or bug fixes. | ||
- Update documentation if necessary. | ||
|
||
## Contact Information | ||
|
||
For urgent issues or further assistance, you can reach out directly: | ||
|
||
- **Telegram**: [tg:onepx](https://t.me/onepx) | ||
- **LinkedIn**: [linkedin.com/onepx](https://linkedin.com/in/onepx) | ||
|
||
We appreciate your contributions and look forward to your feedback! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,62 @@ Before running the container, ensure you provide the following required environm | |
|
||
--- | ||
|
||
### **CLI Commands** | ||
|
||
The RushDB CLI allows you to manage users in self-hosted installations. Below are the available commands: | ||
|
||
#### 2.1 **Create a New User** | ||
|
||
Command: | ||
```bash | ||
rushdb create-user <login> <password> | ||
``` | ||
|
||
Example: | ||
```bash | ||
rushdb create-user [email protected] securepassword123 | ||
``` | ||
|
||
This command creates a new user with the specified login and password. It is only allowed in self-hosted setups. | ||
|
||
#### 2.2 **Update User Password** | ||
|
||
Command: | ||
```bash | ||
rushdb update-password <login> <newPassword> | ||
``` | ||
|
||
Example: | ||
```bash | ||
rushdb update-password [email protected] newsecurepassword456 | ||
``` | ||
|
||
This command updates the password for an existing user identified by the provided login. Like `create-user`, this command is restricted to self-hosted environments. | ||
|
||
--- | ||
|
||
### 3. **Docker Usage** | ||
|
||
To use the CLI inside a Docker container, ensure the image is built with the symbolic link for the CLI: | ||
|
||
```bash | ||
docker build -t rushdb-core . | ||
``` | ||
|
||
Run the container and execute CLI commands: | ||
|
||
```bash | ||
docker run --rm rushdb-core rushdb create-user [email protected] securepassword123 | ||
``` | ||
|
||
Or: | ||
|
||
```bash | ||
docker run --rm rushdb-core rushdb update-password [email protected] newsecurepassword456 | ||
``` | ||
|
||
--- | ||
|
||
## Usage | ||
|
||
1. **Obtain an API Token**: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.