Getting Started
This guide will help you get started with the SolixDB API.
Prerequisites
HTTP client (curl, Postman, or your preferred tool)
Basic understanding of REST APIs and/or GraphQL
Installation
# Clone the repository
git clone https://github.com/SolixDB/api
cd api
# Install dependencies
npm install
# Copy environment file
cp .env.example .env
# Edit .env with your configuration
nano .env
# Build the project
npm run build
# Start the server
npm start
# Or run in development mode
npm run devEnvironment Variables
Create a .env file with the following variables:
Making Your First Request
REST API Example
GraphQL Example
SQL Query Example
Execute custom SQL queries directly against the database:
Note: SQL queries must include a LIMIT clause and are read-only (SELECT only).
Next Steps
Explore the REST API Reference
Check out GraphQL API Reference
See Examples for common use cases
Last updated