### Start NeoBase Example Databases with Docker Compose Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command starts a set of optional example databases using Docker Compose. It brings up instances of PostgreSQL, ClickHouse, MySQL, and MongoDB, allowing users to test NeoBase's querying capabilities against various database types without manual setup. ```bash docker-compose -f docker-compose-exampledbs.yml up -d ``` -------------------------------- ### Create Environment File from Example Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md Copies the example environment file (`.env.example`) to create a new `.env` file. This new file will be edited with specific production configurations for NeoBase. ```bash cp .env.example .env ``` -------------------------------- ### Start NeoBase Backend Server Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command compiles and runs the main Go application for the NeoBase backend. It initiates the server, making it ready to handle API requests, provided that the necessary MongoDB and Redis services are already running and accessible. ```bash go run cmd/main.go ``` -------------------------------- ### Start NeoBase Applications with Docker Compose Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md Deploys and starts the main NeoBase backend and client applications in detached mode. This command uses the `docker-compose-server.yml` file and includes a `--build` flag to ensure images are up-to-date. ```bash docker-compose -f docker-compose-server.yml up -d --build ``` -------------------------------- ### Navigate to NeoBase Client Directory Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command changes the current directory to the 'client' folder, which contains the frontend application code. This is the first step before performing any client-side operations like installing dependencies or running the development server. ```bash cd client/ ``` -------------------------------- ### Start NeoBase Dependencies with Docker Compose Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md Starts the required database dependencies (MongoDB and Redis) for NeoBase in detached mode. This step uses the `docker-compose-dependencies.yml` file and is only necessary if you don't have existing database instances. ```bash docker-compose -f docker-compose-dependencies.yml up -d ``` -------------------------------- ### Navigate to NeoBase Backend Directory Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command changes the current directory to the 'backend' folder, where the Go-based server application resides. This is a prerequisite for performing any backend-specific operations, such as managing Go modules or starting the server. ```bash cd backend/ ``` -------------------------------- ### Create NeoBase Backend Environment File Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command copies the example environment file to a new `.env` file for the backend. This file will store critical configuration details for the Go application, including database connection strings, API keys, and other sensitive settings, which must be configured before running the server. ```bash cp .env.example .env ``` -------------------------------- ### Install NeoBase Frontend Dependencies Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command installs all necessary Node.js packages and dependencies for the NeoBase frontend application. It uses npm, the Node Package Manager, to read the `package.json` file and download required modules, ensuring the application has all its prerequisites. ```bash npm install ``` -------------------------------- ### Create NeoBase Frontend Environment File Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command copies the example environment file to a new `.env` file. The `.env` file will contain configuration variables specific to the frontend application, such as API URLs and environment settings, which need to be edited for proper functionality. ```bash cp .env.example .env ``` -------------------------------- ### Create NeoBase Docker Compose Environment File Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command copies the example environment file to a new `.env` file within the `docker-compose` directory. This `.env` file will hold configuration variables that are used by the Docker Compose setup, such as port mappings, volume paths, and other service-specific settings. ```bash cp .env.example .env ``` -------------------------------- ### Install NeoBase Backend Dependencies Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command synchronizes the Go modules required by the NeoBase backend application. `go mod tidy` adds any missing modules needed for builds and removes unused modules, ensuring that the `go.mod` and `go.sum` files accurately reflect the project's dependencies. ```bash go mod tidy ``` -------------------------------- ### Start NeoBase Local Development Stack with Docker Compose Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command starts the entire NeoBase application stack in detached mode using Docker Compose. It builds images if necessary and brings up all services defined in `docker-compose-local.yml`, including MongoDB, Redis, the NeoBase backend, and the NeoBase frontend, for local development. ```bash docker-compose -f docker-compose-local.yml up -d --build ``` -------------------------------- ### Run or Build NeoBase Frontend Application Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md These commands allow you to either run the NeoBase frontend in development mode for active coding and testing, or build it for production deployment. The `npm run dev` command starts a local development server, while `npm run build` compiles the application for optimized deployment. ```bash npm run dev Or build for production: npm run build ``` -------------------------------- ### Navigate to Docker Compose Directory Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md Changes the current directory to the `docker-compose` folder, which contains the necessary Docker Compose files for server deployment. ```bash cd docker-compose/ ``` -------------------------------- ### Create Docker Network for NeoBase Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md Creates a dedicated Docker network named `neobase-network`. This network allows the NeoBase applications and their dependencies (like MongoDB and Redis) to communicate securely. ```bash docker network create neobase-network ``` -------------------------------- ### Navigate to NeoBase Docker Compose Directory Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command changes the current directory to the 'docker-compose' folder. This directory contains the Docker Compose configuration files for various deployment scenarios of NeoBase, allowing users to manage the entire application stack using Docker. ```bash cd docker-compose/ ``` -------------------------------- ### Generate Signup Secret using cURL Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md Sends a POST request to the NeoBase backend API to generate a signup secret. This secret is essential for creating new user accounts through the NeoBase Client UI after the initial deployment and setup. ```bash curl -X POST http://localhost:3000/api/auth/generate-signup-secret \ -H "Content-Type: application/json" \ -d '{"username":"your-admin-username","password":"your-admin-password"}' ``` -------------------------------- ### Create NeoBase Docker Network Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/SETUP.md This command creates a custom Docker network named `neobase-network`. This network allows all services defined in the Docker Compose file to communicate with each other using their service names, providing isolated and efficient inter-container communication. ```bash docker network create neobase-network ``` -------------------------------- ### Git Workflow for Contributing to NeoBase Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/CONTRIBUTORS.md This snippet outlines the standard Git workflow for contributing to the NeoBase project. It covers creating a feature branch, committing changes, and pushing to the branch, which are essential steps before opening a Pull Request. ```bash git checkout -b feature/amazing-feature git commit -m 'Add some amazing feature' git push origin feature/amazing-feature ``` -------------------------------- ### Schema.org SoftwareApplication Definition for NeoBase Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/neobase-landing/index.html This Schema.org JSON-LD defines the NeoBase software application, detailing its context, type, name, application category, operating system, pricing offer, description, screenshot URL, and software version. ```APIDOC { "@context": "https://schema.org", "@type": "SoftwareApplication", "name": "NeoBase", "applicationCategory": "DeveloperApplication", "operatingSystem": "Web", "offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" }, "description": "NeoBase is an AI Copilot for Database that helps you query, analyze, and manage your databases with natural language.", "screenshot": "https://www.neobase.cloud/hero-ss.png", "softwareVersion": "1.0" } ``` -------------------------------- ### Schema.org WebSite Definition for NeoBase Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/neobase-landing/index.html This Schema.org JSON-LD defines the NeoBase website, including its context, type, URL, name, description, and a potential search action with a query input. ```APIDOC { "@context": "https://schema.org", "@type": "WebSite", "url": "https://neobase.cloud/", "name": "NeoBase", "description": "NeoBase is an AI-powered database assistant that helps you query, analyze, and manage your databases with natural language.", "potentialAction": { "@type": "SearchAction", "target": "https://neobase.ai/search?q={search\_term\_string}", "query-input": "required name=search\_term\_string" } } ``` -------------------------------- ### Git Contribution Workflow Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/README.md Standard Git commands for contributing to the NeoBase project. This workflow includes forking the repository, creating a new feature branch, committing changes, pushing to the branch, and finally opening a pull request. ```bash 1. Fork the repository. 2. Create a new branch: git checkout -b feature/your-feature 3. Commit your changes: git commit -m 'Add some feature' 4. Push to the branch: git push origin feature/your-feature 5. Open a pull request. ``` -------------------------------- ### Generate User Signup Secret API Source: https://github.com/bhaskarblur/neobase-ai-dba/blob/main/README.md This API endpoint is used by an administrator to generate a secret key. This secret is essential for new users to sign up through the NeoBase UI, ensuring controlled user registration. ```APIDOC Endpoint: POST /api/auth/generate-signup-secret Description: Generates a secret key required for new user signups. Authentication: Requires admin credentials. Request Body: { "username": "ADMIN_USERNAME", "password": "ADMIN_PASSWORD" } Response: (Secret string to be used for user signup) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.