Skip to content

Commit

Permalink
Remove gulp dependecies
Browse files Browse the repository at this point in the history
...also updated the README by removing deprecated instructions/sections.
  • Loading branch information
dersmon committed Jan 27, 2025
1 parent 7c63574 commit 8b11df6
Show file tree
Hide file tree
Showing 3 changed files with 9,390 additions and 19,842 deletions.
45 changes: 1 addition & 44 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,12 @@ The repository includes a [gulp](http://gulpjs.com/) configuration for setting u

You need the following components in order for the local server to work:
* [NodeJS](https://nodejs.org/)
* [gulp](https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md)

To install the necessary dependencies for the app run the following command in the working directory:
```bash
npm install
```

On Debian-based systems, if you have trouble installing dependencies use the 'nodejs-legacy'-package instead of 'nodejs'. Also gulp needs to be installed globally to run 'gulp server'.

```bash
sudo apt-get install nodejs-legacy
sudo npm install -g gulp
```

### Deployment

Build the application by running
Expand All @@ -43,18 +35,8 @@ npm run build

The static files representing the project pages are stored in the directory `con10t`.

The `con10t`-repository (https://github.com/dainst/con10t) is automatically checked out when building Arachne 4 Frontend with "npm run build" if the con10t-folder doesn't already exist.

The con10t submodule provides many valuable widgets which can be used on project pages. You can find a demonstration of the widgets at https://arachne.dainst.org/project/widgetsdemo.

#### Updating the submodule con10t

Within the folder of the submodule execute
```bash
git pull origin master
```
to get the latest con10t version.

### Configuring the Development Server

The Arachne 4 Frontend uses the development server configured in the config file template "dev-config.json.template" in the folder "/config".
Expand Down Expand Up @@ -93,29 +75,4 @@ Call
export LC_NUMERIC="en_US.UTF-8" && npm run e2e
```

to run the e2e tests matching the filename pattern `e2e/*.spec.js`. Precondition for this to work is that you have the `dist` dir that gets served at `localhost:8080` by defaiöt, as is the case when you run `npm start`.

### Server Configuration

In order for AngularJS' HTML5 mode to work use the following configurations:

#### nginx
```
server {
listen 80;
root /usr/share/nginx/www;
try_files $uri $uri/ /index.html =404;
}
```

#### Apache

```
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1#%{REQUEST_URI} ([^#]*)#(.*)\1$
RewriteRule ^(.*)$ %2index.html [QSA,L]
</IfModule>
```
to run the e2e tests matching the filename pattern `e2e/*.spec.js`. Precondition for this to work is that you have the `dist` dir that gets served at `localhost:8080` by defaiöt, as is the case when you run `npm start`.
Loading

0 comments on commit 8b11df6

Please sign in to comment.