- Run
docker volume create rts_directus_db_volume
to create a docker volume. - Run
docker-compose up
in your root repository directory and keep its terminal open - Navigate to the middleware root folder
- Run
yarn install
- Do your code modification and check your application logs in the real-time-sockets terminal you kept open above
- Directus will be av available at
localhost:8080/admin/login
Directories
with longer names should be named usinghyphens-to-seperate-each-word
.Components
,files
and otherutility functions
should be named usingcamelCasing
.
On startup, directus
executes the script ./directus/schema/start.sh
updating the schema to the snapshot in ./directus/schema/snapshot.yaml
.
If you want to export a directus schema, navigate to the directus folder, then you can use the docker exec directus sh ./schema/export.sh
script. It saves the directus schema to ./directus/schema/snapshot.yaml
. Docker-compose has to be up and running.
docker exec directus sh ./schema/export.sh
If you want to import a directus schema,navigate to the directus folder, then you can use the docker exec directus sh ./schema/import.sh
script. It loads the directus schema from ./directus/schema/snapshot.yaml
. Docker-compose has to be up and running.
docker exec directus sh ./schema/import.sh
When you're ready, push your updated snapshot file to the main branch from the root directory of the project.