* Add Quickstart Guide * Update installation * Remove unused files * Update support/backing * Tweaks in concepts * Setup file structure for API reference 2.0 * Setup page layout for reference * Add clean-urls plugin * getting started updates * Finish authentication rest * getting started updates * Render stylus in 2 spaces * Various * Various * Finish activity docs * Add collections reference * Add extension reference * concepts updates * Fields/tweaks * Add files doc * Add revisions * concepts docs * More api reference * Finish rest api reference (finally) * initial concepts * More things * Add assets api ref * Move sections from file to assets * Add environment variables * contributing docs * Add field transforms page * Left align table headers * concept links * Add API config * Fix mobile nav * Add migrating a project * doc link fixes Co-authored-by: Ben Haynes <ben@rngr.org>
1.5 KiB
Installing from CLI
1. Confirm Minimum Requirements
Directus requires two things to run: Node.js and a Database. For both these system requirements, we aim to support the current LTS release (and newer). At the time of writing (early 2021), this means Node.js v10+ and one of the following:
| Database | Version |
|---|---|
| PostgreSQL | 10+ |
| MySQL | 5.7.8+ |
| SQLite | 3+ |
| MS-SQL Server | 13.0+ |
| OracleDB | 19+ |
| MariaDB | 10.2+ |
::: tip Variants
In addition to the databases above, other variants are also supported, including AWS Aurora (MySQL), AWS Redshift (PostgreSQL), and MariaDB.
:::
2. Create a Project
Navigate to the directory where you wish to create a new Directus project. The new project and directory will be created inside the current directory. Create a new Directus project by running the following npm command.
npx create-directus-project my-project
::: warning
Except for SQLite, the database must already be running before creating your Directus project.
:::
3. Start your Project
To start Directus, navigate to the project directory, my-project.
cd my-project
Run the following command in your project directory.
npx directus start
4. View your Project
The default port used by Directus is 8055. To view your project locally, go to http://localhost:8055 in your browser.