Welcome to MakeMyFlix, an innovative project designed to empower users to create their own "flix". A "flix" is a visual representation of a dataset, crafted to follow specific rules and present data in an accessible manner. By leveraging linked open data, MakeMyFlix simplifies the process of displaying complex datasets, making them easily understandable and available to the public.
This project relies on several services to run correctly
- Postgress database service
- S3 compatible file service
- Node
Although each project can run on their own given the correct env variables, for development purposes we use the docker compose approach to make this easier to run.
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Set up environment variables:
Copy the example environment files and modify them as needed:
cp .env.example .env cp nuxt/.env.example nuxt/.env cp strapi/.env.example strapi/.env
-
Run the project:
docker compose up
To make the Nuxt / Strapi connection a bit more secure, it requires a token. This is not something that is part of the installation and needs to be done afterwards.
-
Create superadmin account
To create a superadmin account, goto: Strapi
This only works if no superadmin account exists* -
Create an API Token
After creating the superadmin, goto: API Tokens
After creating the token, copy the token and paste it inside thenuxt/.env
file. -
Restart services
Unfortunately Nuxt needs to reload to get the new setup, so restart the docker compose to do so using
docker compose restart
-
Stopping services
Use (ctrl-c and)
docker compose down
to stop the running services and remove the containers.
-
Create an new Flix
Goto http://localhost:1000/create/ to create a new flix by entering the SPARQL-endpoint URL and the category and item queries (detail information on how to build these queries will be added, look at https://github.com/netwerk-digitaal-erfgoed/heritageflix-configs for examples)
-
Configure the design
After saving the new Flix in step 1 you will enter the preview configuration dialog where you can personalize the UI of the Flix.
Note: In this step you a token parameter is added in as part of the URL. You can update the new Flix by specifying this token. So save this token to updated the Flix in the future. To edit the queries use:
http://localhost:1000/create?token=<saved token>
. To edit the personalization use:http://localhost:1000/create/preview?token=<saved token>
-
Running the flix
Finaly the new Flix will be available at http://localhost:1000/ using the name of the Flix specified in step 2.
We welcome contributions! Please follow these steps to contribute:
Fork the repository.
-
Create a new branch:
git checkout -b my-feature-branch
-
Make your changes.
-
Commit your changes:
git commit -m "Add some feature"
-
Push to the branch:
git push origin my-feature-branch
-
Create a pull request.