Skip to content

hicsail/aida-content-host

Repository files navigation

Getting Started

To set up and run the project on your local machine, follow these steps:

1. Setup Local Repository

First, pull the repository to your local machine:

git clone https://github.com/hicsail/aida-content-host.git
cd aida-content-host

2. Configure Environment Variables

Update the environment files with the required configurations:

  • At root directory, change .env-example to .env (you don't need to change any values)
  • Navigate to ./server/digital-repository and chage .env-example to .env (you don't need to change the value)

3. Ensure Docker is Running

Make sure Docker is installed and running on your local machine. You can verify this by running:

docker --version

If Docker is not installed, you can download it from Docker's official website.

4. Run the Project

Use the provided shell script to start the necessary services. You can run:

sh run.sh -a

Alternatively, to start specific services:

  • Databse (MongoDB) Only:

    sh run.sh -d
    
  • Digital Repository Only:

    sh run.sh -f
    
  • Visualization Only:

    sh run.sh -v
    

5. Access the Application

Once Docker services are running, open the following URLs in your browser:

If you need to shutdown the App, use:

sh shutdown.sh

Note: This command will also prune all volumes. If you wish not to do this, you have to run docker compose -f docker-compose-local.yml down yourself.