Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
1dbeada
first commit
bryantgillespie Apr 29, 2023
b4c0009
clean up
bryantgillespie Apr 29, 2023
0f224b8
update .gitignore
bryantgillespie May 1, 2023
0101769
wip
bryantgillespie May 1, 2023
d207c8d
fix readme
bryantgillespie May 1, 2023
293e25f
updates for missing content
bryantgillespie May 1, 2023
a7b3409
package changes
bryantgillespie May 1, 2023
b6361be
0.1.0
bryantgillespie May 1, 2023
624525e
fix extra logs
bryantgillespie May 1, 2023
dff9dd3
move template dir
bryantgillespie May 2, 2023
960bc80
0.1.1
bryantgillespie May 2, 2023
6c5424a
fix template folder
bryantgillespie May 2, 2023
5d6220e
0.1.2
bryantgillespie May 2, 2023
47321e4
fix template dir again
bryantgillespie May 2, 2023
497ee48
0.1.3
bryantgillespie May 2, 2023
6a4470e
fix readme
bryantgillespie May 2, 2023
439cbbc
repo change
bryantgillespie May 2, 2023
5dd1c29
readme updates
bryantgillespie May 2, 2023
3493a64
0.1.4
bryantgillespie May 2, 2023
d889124
add rate limiter
bryantgillespie Jun 5, 2023
7db4a7a
0.1.5
bryantgillespie Jun 5, 2023
386e97d
new template
bryantgillespie Jul 6, 2023
d5058eb
0.2.0
bryantgillespie Jul 6, 2023
9c5fef4
Update README.md
bryantgillespie Jul 19, 2023
a9f9020
Merge pull request #25 from directus-community/readme/mysql-note
bryantgillespie Jul 19, 2023
dccbf2a
remove preset ID. Load all presets in a single req
alexvdvalk Sep 19, 2023
e8499a4
Merge pull request #31 from directus-community/load-presets-issue
bryantgillespie Sep 19, 2023
746101a
delete presets before loading new ones
alexvdvalk Sep 19, 2023
9adfdda
Merge pull request #32 from directus-community/load-presets-issue
bryantgillespie Sep 19, 2023
6d7fb8e
extract function wip
bryantgillespie Oct 13, 2023
3e5a283
extract v1
bryantgillespie Oct 13, 2023
e02ad51
update readme
bryantgillespie Oct 14, 2023
547b7f3
Merge pull request #34 from directus-community/extract-function
bryantgillespie Oct 16, 2023
8df63d0
apply from dir WIP
bryantgillespie Oct 16, 2023
7b8236e
Merge pull request #35 from directus-community/apply-from-dir
bryantgillespie Oct 16, 2023
0654463
add commonly modified system collections
bryantgillespie Oct 16, 2023
d50955f
Merge pull request #36 from directus-community/extract-separate-funct…
bryantgillespie Oct 16, 2023
43b7025
fix role loading
bryantgillespie Oct 16, 2023
0a29c14
latest
bryantgillespie Oct 16, 2023
c50ac87
remove slack workflow
bryantgillespie Oct 16, 2023
9be2464
beta-6
bryantgillespie Oct 23, 2023
cb377f4
beta 7
bryantgillespie Oct 23, 2023
08ec889
template fixup
bryantgillespie Oct 23, 2023
39f688f
0.3.0-beta.7
bryantgillespie Oct 23, 2023
1245a2a
add project color and url
bryantgillespie Oct 23, 2023
2994de8
template updates
bryantgillespie Oct 23, 2023
0ccaa4a
0.3.0-beta.8
bryantgillespie Oct 23, 2023
0877138
0.3.0
bryantgillespie Oct 23, 2023
5d75cdc
fix files missing folders
bryantgillespie Oct 24, 2023
66f15fe
0.3.1
bryantgillespie Oct 24, 2023
795cb15
fix: add project color for the website template project settings
joggienl Oct 25, 2023
678b3d9
change default passwords to password
bryantgillespie Oct 25, 2023
a49fdf9
0.3.2
bryantgillespie Oct 25, 2023
b3651b5
Merge pull request #37 from joggienl/fix/website-template-settings-pr…
bryantgillespie Oct 26, 2023
f304c5b
0.3.3
bryantgillespie Oct 26, 2023
018b433
fix readme
bryantgillespie Oct 26, 2023
ea0b3d9
Create LICENSE
bryantgillespie Oct 26, 2023
7b0b39f
typo fix
bryantgillespie Oct 26, 2023
50dfb8e
bring back the accidentally deleted user
bryantgillespie Oct 26, 2023
abef5c0
0.3.4
bryantgillespie Oct 26, 2023
56e2317
update agency os
bryantgillespie Jan 8, 2024
39d5627
0.3.5
bryantgillespie Jan 8, 2024
4cf77d4
fix permissions
bryantgillespie Jan 8, 2024
49527d6
0.3.6
bryantgillespie Jan 8, 2024
542edac
extract refactor
bryantgillespie Jan 30, 2024
03f30f6
load/apply refactor
bryantgillespie Jan 30, 2024
b4fcf68
utils
bryantgillespie Jan 30, 2024
726cf2b
sdk client
bryantgillespie Jan 30, 2024
0cde168
cleanup
bryantgillespie Jan 30, 2024
0a5daf5
more cleanup
bryantgillespie Jan 30, 2024
2f9c901
deps updates
bryantgillespie Jan 30, 2024
9886fef
remove unneeded packages
bryantgillespie Jan 30, 2024
e49d355
add fetch from github
bryantgillespie Jan 30, 2024
013416b
cleanup
bryantgillespie Jan 30, 2024
f26073d
Add /downloads to .gitignore
bryantgillespie Jan 30, 2024
b5d5c23
Fix file import issues
bryantgillespie Jan 30, 2024
85a578b
Add schema validation and error handling
bryantgillespie Jan 30, 2024
b41f581
Refactor error logging in loadPermissions function
bryantgillespie Jan 30, 2024
b29dab4
Add new utility functions and fix error logging
bryantgillespie Jan 30, 2024
bcc540b
Refactor getTemplate function to improve template retrieval
bryantgillespie Jan 30, 2024
70f6b2c
Refactor field and relation extraction
bryantgillespie Jan 30, 2024
cac06fe
Add axios dependency
bryantgillespie Jan 30, 2024
a471607
Update tsconfig.json with module resolution and synthetic default imp…
bryantgillespie Jan 30, 2024
5be3615
agencyos test
bryantgillespie Jan 30, 2024
3e2cd89
0.4.0-beta.0
bryantgillespie Jan 30, 2024
2f37838
Add logError utility function
bryantgillespie Jan 30, 2024
b575dd7
Update package.json bin name
bryantgillespie Jan 30, 2024
739ae01
4.0.0-beta.1
bryantgillespie Jan 30, 2024
c3fc38f
file handling goose chase
bryantgillespie Jan 30, 2024
4ca3f01
Add resolvePathAndCheckExistence function to apply.ts
bryantgillespie Jan 30, 2024
877ec8a
Add downloads folder to .gitignore
bryantgillespie Jan 30, 2024
9b95036
4.0.0-beta.2
bryantgillespie Jan 30, 2024
47f553e
readme fix
bryantgillespie Feb 8, 2024
238bb9c
Add @directus/types dependency
bryantgillespie Feb 8, 2024
4778f6f
Refactor code and fix template validation issue
bryantgillespie Feb 8, 2024
1329c1f
Delete templates dir
bryantgillespie Feb 8, 2024
42f7d6f
0.4.0
bryantgillespie Feb 8, 2024
02e5342
Merge pull request #45 from directus-community/sdk-refactor
bryantgillespie Feb 16, 2024
f7ec0d3
Add protected domains list and update URL validation logic
bryantgillespie Feb 23, 2024
9b75c8b
fix readme
bryantgillespie Feb 23, 2024
211163a
4.0.1
bryantgillespie Feb 23, 2024
7c8500f
fix templates dir
bryantgillespie Feb 26, 2024
d5aabbf
Merge pull request #48 from directus-labs/protected-urls
bryantgillespie Feb 26, 2024
335a3c7
0.4.1
bryantgillespie Feb 26, 2024
2371ccd
Add openUrl utility function and premium template option
bryantgillespie Mar 4, 2024
ee4db2d
utm params
bryantgillespie Mar 4, 2024
588f6b9
Merge pull request #49 from directus-labs/dplus-url
bryantgillespie Apr 10, 2024
5ae36ef
quick fixes
bryantgillespie May 29, 2024
bff2791
0.4.2
bryantgillespie May 29, 2024
a1df2cf
0.4.3
bryantgillespie May 29, 2024
d43d4f5
Initial commit
bryantgillespie Nov 20, 2024
32bb3a8
Initial commit with boilerplate
Nov 20, 2024
c513354
Reorganize structure
Nov 21, 2024
ee186de
Folders structure update
Nov 22, 2024
7cd2228
Readme starters
Nov 22, 2024
a2cdf87
Readme updates, data fetching, types, starter home, footer and header
Nov 25, 2024
00804b9
Delete .DS_Store
LZylstra Nov 25, 2024
6e0f8ad
Add V11 Support (#63)
bryantgillespie Nov 27, 2024
56a57e7
0.5.0
bryantgillespie Nov 27, 2024
3978b26
Header, Footer, Dark Mode
Nov 27, 2024
f906ba7
Rich Text Block
Nov 27, 2024
f9c6dce
Restructure folders, Add button, buttongroup and hero
Nov 29, 2024
641af11
Gallery block, rich text, header, buttons cleanup, hero image fix
Dec 2, 2024
0e76b78
Split title and headline
Dec 2, 2024
76646e8
Pricing and pricing card
Dec 3, 2024
33f89ea
Updates to nav bar
Dec 3, 2024
686f137
Fix for params async error
Dec 3, 2024
9c6aa4d
Fix fonts and cleanup styling
Dec 4, 2024
6131c1c
Title and Headline styling update
Dec 4, 2024
005cd13
Footer and Text styling fix
Dec 4, 2024
1725084
Page SEO
Dec 5, 2024
e0d24bd
Page SEO env example
Dec 5, 2024
3c1e5ee
Hero updated to match design
Dec 5, 2024
4942d92
Buttons options for sizing and icons
Dec 5, 2024
7940493
Navigation bar mobile fix and adjusted theme switcher
Dec 6, 2024
337a522
Pricing and pricing card styling
Dec 6, 2024
c317e7a
Rich text styling
Dec 7, 2024
33bd9db
Gallery styling
Dec 7, 2024
658db64
Gallery updates, blog page and blog posts
Dec 10, 2024
1082aa1
Page level data fetching, simplified components
Dec 11, 2024
2f862fe
Replace a tags with Link, images styling, rich text styling
Dec 12, 2024
f669476
Headline and title responsive
Dec 12, 2024
b7805c8
Blog posts as block
Dec 13, 2024
b5764ea
Update type generating script
Dec 13, 2024
84c0939
Standardize names, restructure folders, update readme
Dec 13, 2024
aaa6191
Readme update
Dec 13, 2024
651ca2c
Cleanup navigation bar styles and add social links
Dec 13, 2024
526359a
ThemeToggle in footer
Dec 13, 2024
c2833b9
always download community templates
bryantgillespie Dec 27, 2024
7c4ced5
0.5.1
bryantgillespie Dec 27, 2024
309a768
Dynamic forms, Live Preview, Global Search (#1)
LZylstra Jan 9, 2025
8b284e8
update logo_dark_mode field
bryantgillespie Jan 10, 2025
40bf8df
fix image config
bryantgillespie Jan 10, 2025
66dff22
fix hero image
bryantgillespie Jan 10, 2025
7309e5c
Add sitemap and site title in page title (#4)
LZylstra Jan 10, 2025
c3c59cc
Hero layout, package.json update to latest (#5)
LZylstra Jan 15, 2025
318f35c
Schema update
LZylstra Jan 15, 2025
451c082
Form submission id optional
LZylstra Jan 15, 2025
abc31f0
Update README.md
LZylstra Jan 15, 2025
2e63cb0
add gitignore
LZylstra Jan 22, 2025
3014125
Hydration error fix, readme updates, config changes
LZylstra Jan 23, 2025
c57315b
gitignore update
bryantgillespie Feb 14, 2025
98a59dd
move files in prep
bryantgillespie Feb 14, 2025
aadd271
move gitignore for now
bryantgillespie Feb 14, 2025
693c233
feat: merge cli repository into monorepo
bryantgillespie Feb 14, 2025
faf8dc8
merge cli
bryantgillespie Feb 14, 2025
0c9d6ed
feat: merge starters repository into monorepo
bryantgillespie Feb 14, 2025
15f8d68
mv starters
bryantgillespie Feb 14, 2025
b72f8a3
move template structure
bryantgillespie Feb 14, 2025
8a2927d
move github back to root
bryantgillespie Feb 14, 2025
796c696
update working dir
bryantgillespie Feb 14, 2025
bf02f49
add package json
bryantgillespie Feb 14, 2025
efb4afb
make dir match package name
bryantgillespie Feb 14, 2025
4f77289
ditch vs code settings
bryantgillespie Feb 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
day: 'saturday'
versioning-strategy: 'increase'
labels:
- 'dependencies'
open-pull-requests-limit: 5
pull-request-branch-name:
separator: '-'
commit-message:
# cause a release for non-dev-deps
prefix: fix(deps)
# no release for dev-deps
prefix-development: chore(dev-deps)
ignore:
- dependency-name: '@salesforce/dev-scripts'
- dependency-name: '*'
update-types: ['version-update:semver-major']
10 changes: 10 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: automerge
on:
workflow_dispatch:
schedule:
- cron: '17 2,5,8,11 * * *'

jobs:
automerge:
uses: oclif/github-workflows/.github/workflows/automerge.yml@main
secrets: inherit
43 changes: 43 additions & 0 deletions .github/workflows/failureNotifications.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: failureNotifications

on:
workflow_run:
workflows:
- version, tag and github release
- publish
types:
- completed

jobs:
failure-notify:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: Announce Failure
id: slack
uses: slackapi/[email protected]
env:
# for non-CLI-team-owned plugins, you can send this anywhere you like
SLACK_WEBHOOK_URL: ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
with:
payload: |
{
"text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": ":bh-alert: ${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }} :bh-alert:"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Repo: ${{ github.event.workflow_run.repository.html_url }}\nWorkflow name: `${{ github.event.workflow_run.name }}`\nJob url: ${{ github.event.workflow_run.html_url }}"
}
}
]
}
40 changes: 40 additions & 0 deletions .github/workflows/manualRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: manual release

on:
workflow_dispatch:

defaults:
run:
working-directory: packages/cli

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@d360fad3a42feca6462f72c97c165d60a02d4bf2
# overriding some of the basic behaviors to just get the changelog
with:
git-user-name: svc-cli-bot
git-user-email: [email protected]
github-token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
output-file: false
# always do the release, even if there are no semantic commits
skip-on-empty: false
tag-prefix: ''
- uses: notiz-dev/github-action-json-property@2192e246737701f108a4571462b76c75e7376216
id: packageVersion
with:
path: 'packages/cli/package.json'
prop_path: 'version'
- name: Create Github Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
with:
tag_name: ${{ steps.packageVersion.outputs.prop }}
release_name: ${{ steps.packageVersion.outputs.prop }}
27 changes: 27 additions & 0 deletions .github/workflows/onPushToMain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# test
name: version, tag and github release

on:
push:
branches: [main]
paths:
- 'packages/cli/**'
- '.github/workflows/**'

defaults:
run:
working-directory: packages/cli

jobs:
release:
uses: oclif/github-workflows/.github/workflows/githubRelease.yml@main
with:
working-directory: packages/cli
secrets: inherit

# most repos won't use this
# depends on previous job to avoid git collisions, not for any functionality reason
# docs:
# uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main
# secrets: inherit
# needs: release
25 changes: 25 additions & 0 deletions .github/workflows/onRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: publish

on:
release:
types: [released]
# support manual release in case something goes wrong and needs to be repeated or tested
workflow_dispatch:
inputs:
tag:
description: tag that needs to publish
type: string
required: true

defaults:
run:
working-directory: packages/cli

jobs:
npm:
uses: oclif/github-workflows/.github/workflows/npmPublish.yml@main
with:
tag: latest
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
working-directory: packages/cli
secrets: inherit
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: tests
on:
push:
branches-ignore: [main]
paths:
- 'packages/cli/**'
- '.github/workflows/**'
workflow_dispatch:

defaults:
run:
working-directory: packages/cli

jobs:
unit-tests:
uses: oclif/github-workflows/.github/workflows/unitTest.yml@main
with:
working-directory: packages/cli
163 changes: 72 additions & 91 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,128 +1,109 @@
<a href="https://directus.io" target="_blank">
# Starter Templates with Directus Integration

<h1 align="center">Directus Templates</h1>
</a>
This repo provides a collection of starter templates for building web applications with Directus integration. Initially, this includes a **Simple CMS**, but upcoming templates will also include **Simple CRM** and **Simple eCommerce** solutions.

<p align="center">Community maintained Directus instance templates to help you jump start your next project. Apply and extract templates with <a href="https://github.com/directus-community/directus-template-cli"target="_blank">directus-template-cli</a>.
</p>
Each template is designed to be:

<p align="center">
<a href="#introduction"><strong>Introduction</strong></a> ·
<a href="#using-templates"><strong>🚧 Using Templates</strong></a> ·
<a href="#%EF%B8%8F-contributing"><strong>❤️ Contributing</strong></a>
</p>
<br/>
<br />
- **Reusable**: Modular codebases that can be easily extended.
- **Framework-Specific**: Tailored implementations for popular frameworks like Next.js, Nuxt.js, Svelte, and Astro.
- **Scalable**: Suitable for small to medium projects and scalable to larger applications.

# 🚀 Introduction

## What is a Directus "Template"?
A Directus template is a starter kit or boilerplate for a Directus project. But it could be a full blown application – like [AgencyOS](https://github.com/directus-community/agency-os).

Templates are extracted and applied using the [`directus-template-cli`](https://github.com/directus-community/directus-template-cli) command line utility.

- They're examples of what you can build with Directus
- They're starting points for your next client project
- They're going to save you a boatload of time

## What's Included in a Template?

**Schema / Data Model**
- Schema Snapshot
- Collections
- Fields
- Relations

**Users and Authentication**
- Users
- Roles
- Permissions
- Presets

**Flows**
- Flows
- Operations

**Dashboards**
- Dashboards
- Panels
---

**Assets**
- Folders
- Files
- Actual Files for Assets
## **Current and Upcoming Templates**

**Sample Content / Data**
- Translations
- Content
| Template | Status | Description |
| -------------------- | -------------- | -------------------------------------------- |
| **Simple CMS** | 🚧 In Progress | A starter CMS template for managing content. |
| **Simple CRM** | 🕒 Upcoming | A CRM template for managing customer data. |
| **Simple eCommerce** | 🕒 Upcoming | A template for building eCommerce solutions. |

---

## **Getting Started**

# **🚧 Using Templates**
### **Using Directus with a Cloud Instance (Recommended)**

To load or use templates you need a Directus instance. Here's a few ways to go about that.
1. **Create a New Project**:

### 1a - Register for a Directus Cloud account
- Visit [Directus Cloud](https://directus.io/cloud/) and create a new project.
- During the setup process, be sure to select the appropriate template for your project (**Simple CMS**, **Simple CRM**, or **Simple eCommerce**).
- Once started, it will take around 90 seconds for the Cloud Project to be created.
- You will receive an email with your project URL, email, and password for logging in.
- If you used GitHub to create your account, this will be your GitHub email.

https://directus.cloud/register
2. **Access Your New Project**:

This is the easy button. You don’t have to mess with Docker or working out how to deploy a Directus instance at AWS,
Digital Ocean, or similar hosts. A couple of clicks and in less than 2 minutes you’ll have a ready to go Directus
project.
- Log in to your project using the URL provided in your email or from the Directus Cloud Dashboard.

OR
3. **Select a Template**:
- Navigate to the folder for the framework you want to use in this repo.
- Follow the instructions in that template's README to set up your application and connect it to your cloud instance.

### 1b - Self Host a Directus Instance
---

If you're prefer to self-host Directus, we highly recommend you do so with Docker. We have several guides on the [Directus docs](https://docs.directus.io/self-hosted/docker-guide.html).
### **Using Directus Locally**

**Important Note**: We (the Directus team) cannot provide support for
self-hosted instances WITHOUT an Enterprise Self-Hosted license or formal support agreement.
[Learn more and contact our team for details on Enterprise Self-Hosted](https://directus.io/pricing/self-hosted).
For local development, follow these steps:

1. **Install Docker**:

[PostgreSQL](https://www.postgresql.org/) is the **tested and preferred** database vendor for templates.
- Ensure Docker is installed and running on your machine: [Download Docker](https://www.docker.com/products/docker-desktop).

2. **Clone the Template You Want**:

### 2 **- Generate a static token for the admin user**
- Select the template folder for your chosen framework (e.g., `simple-cms`) and clone it:
```bash
git clone https://github.com/your-org/starters.git simple-cms
cd simple-cms
```

You need the static token to seed the project.
3. **Navigate to the `directus/` Folder**:

1. Go to the User Directory
2. Choose the Administrative User
3. Scroll down to the Token field
4. Generate token and copy it
5. Save the user (do NOT forget to save because you’ll get an error that shows Invalid token!)
- Inside your cloned template folder, navigate to the `directus/` folder:
```bash
cd directus
```

### 3 **- Apply the Template**
4. **Start Directus**:

Open your terminal, run the following command, and simply follow the prompts.
- Run Docker Compose to start the Directus instance:

`npx directus-template-cli@latest apply`
```bash
docker-compose up -d
```

You can load apply templates from three sources.
- This will start Directus on [http://localhost:8055](http://localhost:8055). Use the following credentials to log in:
- **Admin Email**: `[email protected]`
- **Admin Password**: `d1r3ctu5`

- Official Templates (maintained in this repo)
- Local directory (files on your local computer)
- GitHub repository (public only)
5. **Apply a Template**:

You can learn more about the
[Directus Template CLI tool here](https://github.com/directus-community/directus-template-cli).
- Use the [Directus Template CLI](https://github.com/directus-labs/directus-template-cli) to apply a pre-configured template for your project. Follow these steps:

_Note_: It can take a
few minutes for the template script to run if you’re using a remotely hosted Directus instance.
1. \*\*Generate a static token for the admin user:

# ❤️ Contributing
- Go to the **Users Directory**
- Choose the Administrative User
- Scroll down to the **Token** field and generate a static token.
- Copy the token and save it. **Do not forget to save the user**, or you will encounter an "Invalid token" error.

This is community driven project so we'd love to have your contributions.
2. **Run the Template CLI Tool**:

You can extract your own templates using:
- Open your terminal, run the following command, and follow the prompts:
```bash
npx directus-template-cli@latest apply
```

`npx directus-template-cli@latest extract`
3. **Follow the Prompts**:

Here's how you can contribute:
- [Make a pull request](https://github.com/directus-community/directus-templates/pulls) to add your own template.
- Choose `Community templates`
- Select the template from the list to apply (**Simple Website CMS**, **Simple CRM**, or **Simple eCommerce**)
- Fill in your Directus URL
```bash
http://localhost:8055
```
- Select `Directus Access Token`
- Fill in the token you saved from Step 1

## 🙏 Thanks To
Big shout out to [Alex van der Valk (AVDV)](https://github.com/alexvdvalk) for his contributions to this project.
---
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "@directus-labs/templates",
"private": true,
"scripts": {},
"license": "MIT"
}
Loading