Install Backend

Second part

Lumex Backend is build using Payload CMS - is a open source real-time Headless CMS and App dashboard for managing database content. Lumex template support MongoDB database management system with demo installation. Please check detailed step-by-step instuction below for MongoDB using Docker containers or without.

Method 1. Payload CMS & Demo Data installation using Docker (MongoDB)

  • Before start you need have installed Docker.

  • Open Terminal run command docker -v for check if it already installed. Download and install Docker on you environment you can from official websitearrow-up-right.

  • Open a new Terminal window and go to your Pixy database directory command cd your_works_dir_path/lumex/database_mongodb

  • Run mongodb container using command docker compose up

  • If all successfully finished, must retrun message like "database system is ready to accept connections"

  • Open a new Terminal window and go to your Lumex database directory command cd your_works_dir_path/lumex/database_mongodb

  • Run 'mongorestore' operation using command:

    docker exec -i lumex-mongo-db-mongo-1 mongorestore --uri="mongodb://admin:S3cret@mongo:27017/lumex?authSource=admin" /demo_data/lumex
    

    where lumex-mongo-db-mongo-1 docker container name (can be check it using command "docker ps", culumn NAME), admin MongoDB username, S3cret MongoDB user password, lumex MongoDB database name, /demo_data MongoDB database backup file path.

Done!

Last updated