- How 2 install
- Post-install steps
- Directus configuration
- Tables to create
- Make created collections public
- Reverse Proxy configuration
- Directus configuration
- Development
- Install docker: https://docs.docker.com/engine/install/
- Clone this GitHub-Repo into a directory
- Copy the
.env.example
into a new.env
-File and change the default values - Now run
docker compose up -d --build
in the root-path of the repo
Tip
To update the git source of the project run docker compose down && git pull && docker compose up -d --build
in a bash-like shell
Note
- All fields where no data type is specified are Input fields
- Asterisks specify fields as required fields
- Directus is creating
id
-fields with autoincrement automatically
technologies
id
label
*fa_icon
*link
*
companies
id
name
*role
*technologies
(Many to Many with technologies table)start_date
(Date)*end_date
(Date)order
(Integer Input)
schools
id
name
*branch
*start_date
(Date)*end_date
(Date)
projects
id
github_link
name
*short_description
*technologies
(Many to Many with technologies table)description
(WYSIWYG)order
(Integer Input)
Tip
If done right you should now be able to see two intermediate tables (for the Many to Many relations):
-
In your logged in directus instance navigate to Settings > Access policies > Public
-
Here you can add your collections to the public setting and grant read privileges
-
You can also add
directus_files
to the public setting and configure it like in the screenshot:You can now create a
Public
-folder in the file system of directus and access the files in it public, files which aren't located in thisPublic
-folder remain private
To make the project publicly accessible, you can configure your reverse proxy (this can be Nginx Proxy Manager for instance)
- You have to publish port
3000
to a domain, this is the main website - And you have to publish port
8055
to a domain likedirectus.<YOURDOMAIN>.com
-
A local directus instance isn't necessarily needed, because you can just point the directus URL in the directus SDK plugin settings (
frontend
>plugins
>directus.ts
) to your production directus. -
To run the frontend in dev-Mode navigate into the
frontend
directory, open a terminal and typenpm run dev
, the used Node version is 20.17.0[!NOTE]
When running this command the first time, you need to run
npm install
beforehand