Installation
Installation
Section titled “Installation”This guide will walk you through installing and setting up OstrichDB for development.
Prerequisites
Section titled “Prerequisites”Before installing OstrichDB, ensure you have the following:
Odin Compiler
Section titled “Odin Compiler”OstrichDB is written in Odin, so you’ll need the Odin compiler installed on your system.
- Visit the official Odin website
- Follow the installation instructions for your operating system
- Verify the installation by running:
Terminal window odin version
System Requirements
Section titled “System Requirements”- Operating System: Linux, macOS, or Windows
- Memory: At least 512MB RAM available
- Storage: 100MB+ free disk space for the database files
Installation Steps
Section titled “Installation Steps”1. Clone the Repository
Section titled “1. Clone the Repository”git clone https://github.com/ArchetypeDynamics/Open-Ostrich.gitcd Open-Ostrich
2. Build the Project
Section titled “2. Build the Project”OstrichDB includes a build script that handles compilation and setup:
./scripts/local_build.sh
This script will:
- Compile the Odin source code
- Set up the necessary directory structure
- Start the server on the default port (8042)
3. Verify Installation
Section titled “3. Verify Installation”Once the build completes, you should see output indicating that the server has started:
OstrichDB Server starting on localhost:8042Server ready to accept connections
You can verify the installation by making a request to the health endpoint:
curl http://localhost:8042/health
Configuration
Section titled “Configuration”The server uses JSON configuration files located in the config/
directory:
development.json
- Development environment settingsproduction.json
- Production environment settings
Default Configuration
Section titled “Default Configuration”By default, OstrichDB runs with these settings:
- Port: 8042
- Host: localhost
- Environment: development
- Database Path:
./data/
You can modify these settings by editing the appropriate configuration file.
First-Time Setup
Section titled “First-Time Setup”For initial development and testing, you may want to create test data. Uncomment the following functions in main/main.odin
:
// create_test_user()// test_project_creation()
These functions will create:
- A test user account
- Sample projects and collections
- Example data for development
Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”Build Errors
- Ensure you have the latest version of the Odin compiler
- Check that all dependencies are properly installed
- Verify file permissions on the project directory
Server Won’t Start
- Check if port 8042 is already in use
- Verify the configuration file syntax
- Ensure the data directory is writable
Connection Issues
- Confirm the server is running on the expected port
- Check firewall settings
- Verify network connectivity
Getting Help
Section titled “Getting Help”If you encounter issues:
- Check the server logs for error messages
- Review the configuration files
- Consult the GitHub repository for known issues
- Create an issue if you find a bug
Next Steps
Section titled “Next Steps”Now that you have OstrichDB installed, continue to the Quick Start guide to learn how to use the database.