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:
Guys here is the Dspace live working functionality videos and please do watch:
Angular 18 came and Dspace 8 also. If you are new then you must check below link:
Prerequisites
- Update your system:
sudo apt update sudo apt upgrade
- Install Java Development Kit (JDK):
sudo apt install openjdk-11-jdk
- Install Apache Maven:
sudo apt install maven
- Install PostgreSQL:
sudo apt install postgresql postgresql-contrib
- Install Node.js and npm (for Angular):
sudo apt install nodejs npm
Database Setup
- Switch to the PostgreSQL user:
sudo -i -u postgres
- Create a new PostgreSQL user:
createuser --username=postgres --no-superuser --pwprompt dspace
- Create a new database:
createdb --username=postgres --owner=dspace --encoding=UNICODE dspace
- Exit the PostgreSQL user:
exit
DSpace Installation
- 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/
- Build DSpace:
mvn package
- 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
- 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
- Rebuild and redeploy DSpace:
cd /dspace/dspace-installer ant update clean_backups
Angular UI Setup
- Clone the DSpace Angular repository:
git clone https://github.com/DSpace/dspace-angular.git cd dspace-angular
- Install dependencies:
npm install
- 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' },
- Build the Angular app:
npm run build
- Deploy the Angular app:
npm run start
Final Steps
- Access DSpace:
- Angular UI:
http://localhost:4000
- REST API:
http://localhost:8080/server/api
- 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
Recent Comments