Giter VIP home page Giter VIP logo

directus-init's Introduction

Directus Init

A preconfigured Directus install with PostgreSQL - intended for extension development or self-hosting

by ched.dev

Features:

Install

Steps:

  • Download a zip of this repo, extract it, and rename the folder to your project name and change into the new folder
  • Create a .env with contents from .env.sample and update config options as desired
  • Create your PostgreSQL DB wherever you plan to host or locally in CLI run createdb directus, then add connection options to .env
  • (Optional) Run the tasks/pg_install_postgis.sql in your database if you want to support location data
  • Run npm run build (installs packages & builds extensions)
  • Run npx directus bootstrap (creates local folders and runs initial db one-time setup)
  • Create an uploads directory if you are storing files locally, alternatively set the S3 config options in .env
  • Run npm start (use this each time to boot up server)

Directus Studio Setup

After you've installed everything and are running the Directus Studio, you should update a few things.

In Settings > Project Settings

  • Update Project Name as this will be used for email sender name
  • Update branding and style (color) to make this instance yours
  • Turn on the API Viewer Module & Generate Types Module in the sidebar (Modules > check to enable)
  • Set a requirement for strong passwords (Security > Auth Password Policy) & login attempts

In Settings > Roles & Permissions

  • Create a role for non-admin users (if needed)
  • Require 2FA on any roles you think should have it

Extensions

We've created a bundle which can hold all of your custom extensions. This approach allows you to add it's own dependencies in one place, as well as integrate into the build process easily.

See the extensions/directus-extension-app-bundle/README.md file to learn more about adding extensions.

If you are developing extensions, open a second terminal to watch and rebuild with npm run extensions.

Upgrading

If this repos Directus version is behind the latest, you can upgrade it following the Directus Upgrades & Migrations Guide.

We've created a UPGRADE_NOTES.md file which outlines all the new features and breaking changes since Directus v9.5.2. This will help you decide what fixes might be required before and after you update.

License

Directus is covered under BSL-1.1 License. Any additional code in this repo is covered under MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.