PDC Tangle Web is a small web app written in Angular2 that allows a user to search for an artifact's dependencies based on data in PDC.
TypeScript HTML CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.editorconfig
.gitignore
README.md
angular-cli.json
package.json
tslint.json

README.md

PDC Tangle Web

Overview

PDC Tangle Web is a small web app written in Angular2 that allows a user to search for an artifact's dependencies. This is accomplished by a series of API calls to PDC.

Development

Install the dependencies:

npm install

Start the webserver:

npm start

Linting

Start by installing angular-cli in a global context:

npm install -g angular-cli

Make sure the app's dependencies are installed:

npm install

Lint the project:

ng lint

Build For Distribution

Start by installing angular-cli in a global context:

npm install -g angular-cli

Make sure the app's dependencies are installed:

npm install

Build the app for distribution:

ng build --aot --prod --env=prod

The contents of the build are now located in the "dist" folder.

Installation On RHEL7

Install and enable apache:

yum install httpd
systemctl enable httpd
systemctl start httpd

Copy the contents from the "dist" folder to:

/var/www/html

Since these are just static files, the app should now be up and running, but routing will not be working correctly. To fix this, create the following file:

/var/www/html/.htaccess

Add the following contents to the .htaccess file:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.html$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.html [L]
</IfModule>

Change AllowOveride None to AllowOverride All on the /var/www/html directory in:

/etc/httpd/conf/httpd.conf

The <Directory "/var/www/html"> section should look something like this:

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Restart Apache for the changes to take effect:

systemctl restart httpd

The app should now be up and running successfully.