Categories

Sunday, September 15, 2024
#919814419350 therichposts@gmail.com
AngularAngular 18DSpace

Installation guide for DSpace 8 on Debian/Ubuntu with Angular

Installation guide for DSpace 8 on Debian Ubuntu with Angular

Hello guys how you? Welcome back on my blog and today in this blog post I will guide you through the installation of DSpace 8 on Debian/Ubuntu with an Angular UI. The process involves several steps including installing the necessary prerequisites, setting up the database, configuring DSpace, and deploying the Angular UI. Here’s a step-by-step guide:

Demos

Angular 18 came and Dspace 8 also. If you are new then you must check below link:

Prerequisites

  1. Update your system:
   sudo apt update
   sudo apt upgrade
  1. Install Java Development Kit (JDK):
   sudo apt install openjdk-11-jdk
  1. Install Apache Maven:
   sudo apt install maven
  1. Install PostgreSQL:
   sudo apt install postgresql postgresql-contrib
  1. Install Node.js and npm (for Angular):
   sudo apt install nodejs npm

Database Setup

  1. Switch to the PostgreSQL user:
   sudo -i -u postgres
  1. Create a new PostgreSQL user:
   createuser --username=postgres --no-superuser --pwprompt dspace
  1. Create a new database:
   createdb --username=postgres --owner=dspace --encoding=UNICODE dspace
  1. Exit the PostgreSQL user:
   exit

DSpace Installation

  1. Download DSpace 8 source code:
   wget https://github.com/DSpace/DSpace/archive/refs/tags/dspace-8.0.tar.gz
   tar -xvzf dspace-8.0.tar.gz
   cd DSpace-dspace-8.0/
  1. Build DSpace:
   mvn package
  1. Install DSpace:
   sudo mkdir -p /dspace
   sudo chown $USER /dspace
   mv dspace/target/dspace-installer /dspace
   cd /dspace/dspace-installer
   ant fresh_install

Configure DSpace

  1. Edit the local.cfg file:
   nano /dspace/config/local.cfg

Add the following lines:

   db.url = jdbc:postgresql://localhost:5432/dspace
   db.username = dspace
   db.password = your_password
  1. Rebuild and redeploy DSpace:
   cd /dspace/dspace-installer
   ant update clean_backups

Angular UI Setup

  1. Clone the DSpace Angular repository:
   git clone https://github.com/DSpace/dspace-angular.git
   cd dspace-angular
  1. Install dependencies:
   npm install
  1. Configure the Angular environment:
   cp src/environments/environment.template.ts src/environments/environment.ts
   nano src/environments/environment.ts

Update the rest section to match your DSpace backend URL:

   rest: {
     ssl: false,
     host: 'localhost',
     port: 8080,
     nameSpace: '/server/api'
   },
  1. Build the Angular app:
   npm run build
  1. Deploy the Angular app:
   npm run start

Final Steps

  1. Access DSpace:
  • Angular UI: http://localhost:4000
  • REST API: http://localhost:8080/server/api
  1. Verify your DSpace instance and Angular UI are running correctly.

This guide should help you set up DSpace 8 with Angular on a Debian/Ubuntu system. If you encounter any issues or need further assistance, feel free to ask!

Note: Friends, In this post, I just tell the basic setup and things, you can change the code according to your requirements.

I will appreciate that if you will tell your views for this post. Nothing matters if your views will be good or bad because with your views, I will make my next posts more good and helpful.

Jassa

Thanks

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 14, Angular 15, Angular 16, Angular 17, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.