
Directus Has a Free API — Heres How to Turn Any Database Into a REST and GraphQL API
Directus wraps any SQL database with instant REST and GraphQL APIs, plus a no-code dashboard for content management. Connect to existing tables — zero migration needed. Why Directus? Any SQL database : PostgreSQL, MySQL, SQLite, MSSQL, OracleDB Instant API : REST + GraphQL from your existing schema No migration : Point at an existing database, get an API Dashboard : No-code admin panel for non-developers Auth built-in : JWT, OAuth, LDAP, SAML Webhooks + Flows : Automation engine File storage : S3, local, Azure, GCS Docker Setup docker run -d -p 8055:8055 \ -e SECRET = your-secret-key \ -e DB_CLIENT = pg \ -e DB_HOST = localhost \ -e DB_PORT = 5432 \ -e DB_DATABASE = mydb \ -e DB_USER = postgres \ -e DB_PASSWORD = password \ -e ADMIN_EMAIL = admin@example.com \ -e ADMIN_PASSWORD = admin123 \ directus/directus REST API: Read Items # Get all posts curl http://localhost:8055/items/posts \ -H 'Authorization: Bearer YOUR_TOKEN' # Filter, sort, paginate curl 'http://localhost:8055/items/posts
Continue reading on Dev.to Tutorial
Opens in a new tab
