Giter Club home page Giter Club logo

ddev-directus's Introduction

tests project is maintained

What is this?

This repository allows you to quickly install Directus into a DDEV project using ddev get MelaineGerard/ddev-directus.

What is Directus

Directus is an Open Source Headless CMS for managing SQL database content. It's a nice tool to use as a backend for all your frontend applications.

Installation

ddev get MelaineGerard/ddev-directus && ddev restart

Explanation

This Directus recipe for DDEV installs a .ddev/docker-compose.directus.yaml using the directus Docker image.

Interacting with Directus

  • The Directus instance will listen on HTTP port 8055 (the Directus default).

  • Configure your application to connect to Directus on the host:port directus:8055.

  • To reach the Directus admin interface, open https://your-project.ddev.site:8055/admin in your browser. (You need to replace your-project with your actual project name.)

  • Credentials are [email protected] and localadmin.

    Your can customize the default credentials in the docker-compose.directus.yaml by editing the ADMIN_EMAIL and ADMIN_PASSWORD variables.

How to use this project in a fresh project

# 1. Create an empty project
mkdir simple-php-project
cd simple-php-project
# 2. Create a simple Hello, World in this folder
echo "<?php echo 'Hello, World!'; ?>" > index.php
# 3. Init ddev in the project
ddev config
# 4. Add Directus in the project
ddev get MelaineGerard/ddev-directus
# 5. Start the project
ddev start
# Directus should now be started on port 8055 of your project

Example url : https://simple-php-project.ddev.site:8055

Maintained By

ddev-directus's People

Contributors

melainegerard avatar alexmazaltov avatar

Stargazers

Evo Stamatov avatar  avatar  avatar Tom De Bourgogne avatar David Paquet Pitts avatar

Watchers

Randy Fay avatar  avatar  avatar  avatar  avatar

Forkers

alexmazaltov

ddev-directus's Issues

instructions for starting up

Hi @MelaineGerard - I agree wholeheartedly with your initiative: great idea to enable Directus projects on DDEV. It's an excellent way to simplify local development.

I've tried a few different ways to start using your project, and each time I get "403 Forbidden - nginx". Unfortunately I've run out of time for digging further for now. Could you provide more of the details you use to start a fresh project?

I've roughed in the following, tho I'm not sure how useful any of it is at this point. If it's on track, please feel free to edit/correct and make it your own:

  1. create a directory containing the Directus codebase
    • (option 1) clone the repository
    • (option 2) download an archive of the latest release
  2. configure ddev in the project directory
    1. (pre-requisite) install ddev
    2. set project type as php
    • (option 1) in Terminal, ddev config --project-type=php
    • (option 2) in Terminal, ddev config then follow the prompts
  3. include this project
    • (option 1) in Terminal, ddev get MelaineGerard/ddev-directus && ddev restart
  4. add required packages python3, make, gcc, g++
    • (option 1) in Terminal, edit ddev config using ``
    • (option 2) in text editor, edit ddev config to add webimage_extra_packages: [python3, make, gcc, g++]
  5. update nodejs to the latest long-term support version
    • (option 1) in text editor, edit ddev config to add nodejs_version: "20"
  6. enable pnpm
  7. set environment variables
  8. run the install and build scripts for directus
  9. follow local installation instructions

README requests - explain directus

Congrats on the new add-on!

  • Please update the README to explain what directus is and link to it.
  • Please add the standard "Maintained by" footer to the README

Thanks!

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.