This repository contains the source code of the Everyday Writing database.
The Evwrit database consists of a Symphony back-end connected to a PostgreSQL database and Elasticsearch search engine. The search and edit pages consist of Vue.js applications.
First, check that .env
contains the correct default configuration (see example.env
). Additionally, update the PGAdmin variables in pgadmin.env
to the desired login credentials.
Run the following command to run the docker services:
- PHP Symfony
- Elasticsearch
- DBBE postgres database
- Node.js
- pgAdmin
docker compose up --build
After the containers are up and running, you can access the Evwrit database on localhost:8080.
In the initdb
folder, you can find the necessary scripts to create the database schema and a minimum test dataset. The
sql scripts are run when when the database container is first created.
You can add additional scripts to the initdb
folder if required.
During the first run, the startup script will create (if needed) initial indexes for the Elasticsearch search engine ( 100 records max).
To index more records, run the following command:
docker exec -it evwrit-dev-symfony-1 php bin/console app:elasticsearch:index text [max limit]
docker exec -it evwrit-dev-symfony-1 php bin/console app:elasticsearch:index level [max limit]