Install Backend
Second part
Pixy Backend is build using Directus - is a open source real-time API and App dashboard for managing SQL database content.
Directus & Demo Data installation using Docker
Before start you need have installed Docker.
Open Terminal run command
docker -vfor check if it already installed. Download and install Docker on you environment you can from official website.Open a new Terminal window and go to your Pixy Directus directory
command cd your_works_dir_path/pixy/directusRun directus container using command
docker compose upPixy App Dashboard should now be available at http://localhost:8055 or http://127.0.0.1:8055.
Default Administrator login: admin@example.com, password: d1r3ctu5
Directus & Demo Data installation using CLI
If for some reason you can't install/use Docker. You can install Directus using npx:
Before start, you need have installed PostgreSQL server, please see here detailed step-by-step guide.
Create new directory
mkdir directus-cliand open itcd directus-cliRun command
npx directus initto start installing latest directus packageNext step press "y" for submit,
Next step select database client "PostgreSQL",
Next confirm database name, user and password to your PostgreSQL server. Press "Enter"
Create your first admin user (email, password)
Launch Directus by running
npx directus start.Access your Pixy App Dashboard at http://localhost:8055.
Now need copy/paste folders "/pixy/directus/extensions/", "/pixy/directus/data/", "/pixy/directus/template/" and "/pixy/directus/uploads/" from your project directory
Using pgAdmin 4 or psql command line tool restore database from "/pixy/directus/dump.sql" for get all demo data
Run
npx directus database migrate:latestfor update current database to latest installed directus package versionRestart directus-cli, ctrl+c and run
npx directus startagain.Pixy App Dashboard should now be available at http://localhost:8055 or http://127.0.0.1:8055.
Default Administrator login: admin@example.com, password: d1r3ctu5
Check additional CLI commands on official website
Last updated