This repository provides a step-by-step guide for setting up a Ruby project using PostgreSQL in a JupyterLab environment. The guide demonstrates how to create a simple ORM, set up the database schema, and perform basic CRUD operations.
- Ruby ORM Implementation: A simple Ruby ORM that interacts with PostgreSQL.
- Database Schema Management: Create and manage database schemas and tables using Ruby.
- Basic CRUD Operations: Insert and retrieve data from the PostgreSQL database.
To use this project, you'll need to set up JupyterLab with a Ruby kernel and PostgreSQL. Follow these steps to get started:
-
Install JupyterLab: Ensure you have JupyterLab installed. You can follow the official installation guide if needed.
-
Install Ruby Kernel for JupyterLab: Install the Ruby kernel for JupyterLab. Follow the installation instructions in the IRuby GitHub repository.
-
Install PostgreSQL: Ensure PostgreSQL is installed and running on your system. You can download it from the official PostgreSQL website.
-
Set Up Environment Variables: Create a
.env
file in your project directory with the following content:DB_USERNAME=your_username DB_PASSWORD=your_password DB_NAME=your_database_name DB_HOST=localhost or your_ip DB_PORT=your_port
-
Clone the Repository:
git clone https://github.com/yourusername/ruby-orm-postgresql.git cd ruby-orm-postgresql
Feel free to fork this repository and submit pull requests for improvements or new features. For significant changes, please open an issue to discuss it first.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or feedback, please contact [email protected].