https://github.com/toilal/directus-pgsql-poc
Proof of concept environment of directus running on PostgreSQL
https://github.com/toilal/directus-pgsql-poc
Last synced: 4 months ago
JSON representation
Proof of concept environment of directus running on PostgreSQL
- Host: GitHub
- URL: https://github.com/toilal/directus-pgsql-poc
- Owner: Toilal
- Created: 2019-09-25T15:16:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-26T19:35:01.000Z (over 6 years ago)
- Last Synced: 2025-07-03T03:03:53.050Z (11 months ago)
- Language: Modelica
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# directus pgsql poc
## Requirements
This repository requires [docker-devbox](https://github.com/gfi-centre-ouest/docker-devbox) to be installed, please
follow instructions on the [docs](https://github.com/gfi-centre-ouest/docker-devbox) to perform the installation.
## Usage
```
dc up -d
```
You may change environment configuration settings in `.bash_enter.env` file.
## Install directus api development environment
```
git clone https://github.com/directus/api.git ./api
cd api
composer install
# Install from command line
# You may skip the following lines if you want to install from directus app
ln -rfs ../config/api.php ./config
_RUN_OPTS="-e HTTP_HOST=api.mysql.directus.test" directus install:database
_RUN_OPTS="-e HTTP_HOST=api.mysql.directus.test" directus install:install -e admin@example.com -p admin -t "Directus POC"
_RUN_OPTS="-e HTTP_HOST=api.pgsql.directus.test" directus install:database
_RUN_OPTS="-e HTTP_HOST=api.pgsql.directus.test" directus install:install -e admin@example.com -p admin -t "Directus POC"
```
## Install directus app development environment
```
git clone https://github.com/directus/app.git ./app
cd app
npm install
ln -rfs ../config/config.js ./public
ln -rfs ../config/vue.config.js ./
```
## Run installer manually from directus app
- Start the app dev server (`npm run dev`)
- Open https://admin.directus.test into your browser
- Run setup as usual, with the following settings
MySQL:
| config | value |
| -------- | --------- |
| host | db2 |
| port | 3306 |
| user | directus |
| password | directus |
| database | directus |
PostgreSQL:
| config | value |
| -------- | --------- |
| host | db |
| port | 5432 |
| user | directus |
| password | directus |
| database | directus |