Skip to content

klimadashboard/base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 

Repository files navigation

🌍 Klimadashboard Base Extensions

This repository contains custom extensions for our Directus-based database, providing additional functionality and custom API endpoints tailored for Klimadashboard.


πŸ› οΈ Getting Started: Building Extensions

To create a new custom extension, follow these steps:

  1. Recommended Resources
    While the official Directus extension docs are useful, we especially recommend this more practical guide:
    πŸ‘‰ Proxy an external API in a custom endpoint extension

  2. Generate a New Extension
    Inside the extensions/ folder, run:

    npx create-directus-extension@latest

    Then follow the interactive setup to define your extension.

  3. Choose Your Language
    You can write your extension in either JavaScript (index.js) or TypeScript (index.ts) β€” choose whichever you're more comfortable with.

  4. Set a Unique Endpoint ID
    In your src/index.js or src/index.ts file, make sure to:

    • Define a unique id for your endpoint.
    • Use a clear, descriptive URI that reflects the purpose of the endpoint.

πŸš€ Deployment

Deployment is currently handled manually by David.

  • Important: Each extension folder is automatically prefixed with directus-extension- during deployment. No need to add this manually.
  • Note: Deployments require a full Directus restart, which makes continuous deployment currently impractical.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors