|
|
NOTE: Before you start here please visit [Page 4: Setup Configurations](https://gitlab.eudat.eu/dmp/OpenAIRE-EUDAT-DMP-service-pilot/-/wikis/Page-4:-Setup-Configurations)
|
|
|
|
|
|
For distribution with Docker:
|
|
|
|
|
|
Windows:
|
|
|
1) Go to the project's root directory
|
|
|
2) Press and hold the *shift* key and press the right click in the folder(after the context menu shows release the *shift* key)
|
|
|
3) From the context menu select **Open Powershell here**
|
|
|
4) Type in Powershell `docker volume create --name=dmpdata`
|
|
|
5) Type in Powershell `docker-compose up -d --build`
|
|
|
6) After it's complete open a web browser and go to `http://localhost:8080` (address and port can be changed based on the PC that access the website and from the docker-compose.yml)
|
|
|
|
|
|
Linux:
|
|
|
1) Go to the project's root directory
|
|
|
2) Press the right click in the folder and select **Open Terminal**
|
|
|
3) Type in the Terminal `docker volume create --name=dmpdata`
|
|
|
4) Type in the Terminal `docker-compose up -d --build`
|
|
|
5) After it's complete open a web browser and go to `http://localhost:8080` (address and port can be changed based on the PC that access the website and from the docker-compose.yml)
|
|
|
|
|
|
Distribution Without Docker:
|
|
|
|
|
|
Windows:
|
|
|
|
|
|
Database:
|
|
|
|
|
|
1. Go to Project's directory
|
|
|
2. Go to *dmp-db-scema/createDB*
|
|
|
3. Press and hold the *shift* key and press the right click in the folder(after the context menu shows release the *shift* key)
|
|
|
4. From the context menu select **Open PowerShell here**
|
|
|
5. Type in PowerShell `./createdb.bat`
|
|
|
|
|
|
Backend:
|
|
|
|
|
|
1. Go back to Project's directory
|
|
|
2. Go to *dmp-backend*
|
|
|
3. Press and hold the *shift* key and press the right click in the folder(after the context menu shows release the *shift* key)
|
|
|
4. From the context menu select **Open PowerShell here**
|
|
|
5. Type in PowerShell `mvn package`
|
|
|
6. Go to *web/target*
|
|
|
7. Copy the .jar file to *openDMP/dmp-backend*
|
|
|
8. Go to *openDMP/dmp-backend*
|
|
|
9. (Optional) Rename the .jar file to openDMP.jar
|
|
|
10. Press and hold the *shift* key and press the right click in the folder(after the context menu shows release the *shift* key)
|
|
|
11. From the context menu select **Open PowerShell here**
|
|
|
12. Type in PowerShell `javaw -jar openDMP.jar`
|
|
|
|
|
|
Frontend:
|
|
|
|
|
|
1. Go back to Project's directory
|
|
|
2. Go to *dmp-fortend*
|
|
|
3. Press and hold the *shift* key and press the right click in the folder(after the context menu shows release the *shift* key)
|
|
|
4. From the context menu select **Open PowerShell here**
|
|
|
5. Type in PowerShell `ng build --prod`
|
|
|
6. Copy *dist* folder to *openDMP/dmp-frontent/webapp*
|
|
|
7. Install nginx to *openDMP/dmp-frontent/webapp*
|
|
|
8. Go to *openDMP/dmp-frontent/webapp*
|
|
|
9. Delete the html folder
|
|
|
10. Rename the *dist* folder to *html*
|
|
|
11. Press and hold the *shift* key and press the right click in the folder(after the context menu shows release the *shift* key)
|
|
|
12. From the context menu select **Open PowerShell here**
|
|
|
13. Type in PowerShell `start nginx`
|
|
|
14. Open a web browser and go to `localhost:80`
|
|
|
|
|
|
|
|
|
Linux:
|
|
|
|
|
|
Database:
|
|
|
|
|
|
1. Go to Project's directory
|
|
|
2. Go to *dmp-db-scema/createDB*
|
|
|
3. Press the right click in the folder and select **Open Terminal**
|
|
|
4. Type in the Terminal `./createdb.sh`
|
|
|
|
|
|
Backend:
|
|
|
|
|
|
1. Go back to Project's directory
|
|
|
2. Go to *dmp-backend*
|
|
|
3. Press the right click in the folder and select **Open Terminal**
|
|
|
4. Type in the Terminal `mvn package`
|
|
|
5. Go to *web/target*
|
|
|
6. Copy the .jar file to *openDMP/dmp-backend*
|
|
|
7. Go to *openDMP/dmp-backend*
|
|
|
8. (Optional) Rename the .jar file to openDMP.jar
|
|
|
9. Press the right click in the folder and select **Open Terminal**
|
|
|
10. Type in the Terminal `javaw -jar openDMP.jar`
|
|
|
|
|
|
Frontend:
|
|
|
|
|
|
1. Go back to Project's directory
|
|
|
2. Go to *dmp-fortend*
|
|
|
3. Press the right click in the folder and select **Open Terminal**
|
|
|
4. Type in the Terminal `ng build --prod`
|
|
|
5. Copy *dist* folder to */usr/share/nginx*
|
|
|
6. Copy the nginx.conf and mime.types to the */etc/nginx*
|
|
|
7. Go to */usr/share/nginx*
|
|
|
8. Delete the *html* folder
|
|
|
9. Rename the *dist* folder to *html*
|
|
|
10. Press the right click in the folder and select **Open Terminal**
|
|
|
11. Type in the Terminal `nginx -p /usr/share/nginx`
|
|
|
12. Open a web browser and go to `localhost:80` |
|
|
\ No newline at end of file |