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.
To run Menous DB, you need the following software and dependencies installed on your system:
Follow these steps to install and run Menous DB on your system:
$ brew tap menoustech/tap
$ brew update
$ brew install menousdb
Clone the Menous DB repository from GitHub:
git clone https://github.com/snehashish0902/Menous-Db.git
cd Menous-Db
Install the required Python packages using pip:
pip install Flask
Create the configuration file based on your operating system:
/Library/Caches/.menousdb/config.json
%APPDATA%\MenoudDb\config.json
/usr/local/bin/menousdb/config.json
Sample Configuration (config.json):
{
"mode": "json",
"port": 5555
}
Start Menous DB:
python menousdb.py --start
.python menousdb.py --port <port_number>
.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:
Create a Database:
/create-db
key
(API key), database
(database name)Check if a Database Exists:
/check-db-exists
key
(API key), database
(database name)Delete a Database:
/del-database
key
(API key), database
(database name)Create a Table:
/create-table
key
(API key), database
(database name), table
(table name), attributes
(table attributes)Check if a Table Exists:
/check-table-exists
key
(API key), database
(database name), table
(table name)Insert Data into a Table:
/insert-into-table
key
(API key), database
(database name), table
(table name), values
(data to insert)Get Data from a Table:
/get-table
key
(API key), database
(database name), table
(table name)Query a Table with Conditions:
/select-where
key
(API key), database
(database name), table
(table name), conditions
(query conditions)Select Specific Columns from a Table:
/select-columns
key
(API key), database
(database name), table
(table name), columns
(columns to select)Select Specific Columns with Conditions:
/select-columns-where
key
(API key), database
(database name), table
(table name), columns
(columns to select), conditions
(query conditions)Update Records in a Table:
/update-table
key
(API key), database
(database name), table
(table name), conditions
(query conditions), values
(new values)Delete Records from a Table:
/delete-where
key
(API key), database
(database name), table
(table name), conditions
(query conditions)Delete a Table:
/delete-table
key
(API key), database
(database name), table
(table name)Check User Authentication:
/check-login
username
(username), password
(password)Verify User Credentials:
/verify/<username>/<password>
username
(username), password
(password)Get User API Key:
/getuserkey
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.
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.
For any questions, feedback, or issues, please contact the author at the provided email address.