Running Standalone DSpace Angular connected to an External REST service

The DSpace Angular UI has a client (js) and a server component (Node js). Each component needs to point to the proper REST API.

1. Pre-requisites

export DPROJ=d7
      - DSPACE_REST_SSL=true
        # DSPACE_REST_NAMESPACE=/spring-rest/api
      - DSPACE_REST_NAMESPACE=/dspace-spring-rest/api
      - DSPACE_REST_PORT=443
module.exports = {
  rest: {
    ssl: true,
    host: '',
    port: 443,
    // NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
    //nameSpace: '/spring-rest/api'
    nameSpace: '/dspace-spring-rest/api'

2. Using Docker Compose

Run Docker compose

docker-compose -p $DPROJ up -d

This will start 1 container: Node - Angular.

$ docker ps -a
CONTAINER ID        IMAGE                             COMMAND                  CREATED             STATUS              PORTS                                            NAMES
7d6532ef898f        dspace/dspace-angular             "/bin/sh -c 'yarn ru…"   25 seconds ago      Up 24 seconds>3000/tcp,>9876/tcp   dspace-angular

3. Accessing the Command Line


docker exec -it --detach-keys "ctrl-p" dspace-angular /bin/sh

Git-Bash Windows

winpty docker exec -it --detach-keys "ctrl-p" dspace-angular //bin/sh

4. Open DSpace in a Browser

5. Stopping DSpace

To stop DSpace, the following command can be run. The image will be retained in a stopped state.

docker-compose -p $DPROJ stop

6. Restarting DSpace

docker-compose -p $DPROJ up -d

7. Destroying Docker Resources

docker-compose -p $DPROJ down

8. Updating Code within an Angular Image

To deploy new code within your image, see angular-dev-compose.