Table of Contents

  1. Introduction
  2. System Requirements
  3. Installation
  4. Usage
  5. API Endpoints
  6. Examples
  7. License
  8. Author Information

1. Introduction

Menous DB is a lightweight, open-source database management system designed for simplicity and ease of use. It provides a RESTful API for managing databases and tables, making it suitable for a variety of applications. This documentation provides an overview of Menous DB, including system requirements, installation instructions, and usage guidelines.

Features:


2. System Requirements

To run Menous DB, you need the following software and dependencies installed on your system:


3. Installation

Follow these steps to install and run Menous DB on your system:

From hombrew for mac

  1. First tap from the repository of Menous Technologies $ brew tap menoustech/tap
  2. Second update hombrew for changes $ brew update
  3. Install menousdb using homebrew $ brew install menousdb

Manual Build

  1. Clone the Menous DB repository from GitHub: git clone https://github.com/snehashish0902/Menous-Db.git cd Menous-Db

  2. Install the required Python packages using pip: pip install Flask

  3. Create the configuration file based on your operating system:

    • macOS: /Library/Caches/.menousdb/config.json
    • Windows: %APPDATA%\MenoudDb\config.json
    • Linux: /usr/local/bin/menousdb/config.json

    Sample Configuration (config.json): { "mode": "json", "port": 5555 }

  4. Start Menous DB:

    • For the default port (5555), run python menousdb.py --start.
    • To specify a custom port, run python menousdb.py --port <port_number>.

4. Usage

Once Menous DB is running, you can use its RESTful API to manage databases and tables. You can interact with the API using HTTP requests and the provided endpoints. Here are some common actions you can perform:


5. API Endpoints

Database Management:

Table Management:

Authentication:


6. Examples

Here are some

example use cases of Menous DB API:

Create a Database: POST /create-db Parameters: key=<API_KEY>, database=<DATABASE_NAME>

Create a Table: POST /create-table Parameters: key=<API_KEY>, database=<DATABASE_NAME>, table=<TABLE_NAME>, attributes=<TABLE_ATTRIBUTES>

Insert Data into a Table: POST /insert-into-table Parameters: key=<API_KEY>, database=<DATABASE_NAME>, table=<TABLE_NAME>, values=<DATA_TO_INSERT>

Query Data from a Table: GET /select-where Parameters: key=<API_KEY>, database=<DATABASE_NAME>, table=<TABLE_NAME>, conditions=<QUERY_CONDITIONS>

Update Records in a Table: POST /update-table Parameters: key=<API_KEY>, database=<DATABASE_NAME>, table=<TABLE_NAME>, conditions=<QUERY_CONDITIONS>, values=<NEW_VALUES>

Delete Records from a Table: DELETE /delete-where Parameters: key=<API_KEY>, database=<DATABASE_NAME>, table=<TABLE_NAME>, conditions=<QUERY_CONDITIONS>

Check User Authentication: GET /check-login Parameters: username=<USERNAME>, password=<PASSWORD>

Verify User Credentials: GET /verify/<username>/<password>

Get User API Key: GET /getuserkey

For more examples and detailed API usage, refer to the Menous DB documentation.


7. License

Menous DB is released under the MIT Open Source Software License. You can find the full license details in the LICENSE file included with the source code.


8. Author Information

For any questions, feedback, or issues, please contact the author at the provided email address.