Skip to content
Snippets Groups Projects
README.md 847 B
Newer Older
### Data-Portal 

This is the code of a single page application for searching with SOLR

### Install

```bash
Moises Sacal's avatar
Moises Sacal committed
npm install
```

### Development

run npm scripts for development

Moises Sacal's avatar
Moises Sacal committed
#### Run a Webpack Dev Server

```bash
npm run start:dev
``` 

and go to [http://localhost:9000](http://localhost:9000)

### Compile

```bash
npm run build
```

should generate a [dist](./dist) folder with compiled SPA and watch for changes

### Configure

Use [./config.json](./config.json) to point to your current solr configuration and repository

Moises Sacal's avatar
Moises Sacal committed
```js
  "repo": "your fqdn repository", //This should point to your current nginx web server where all your ro-crates live
```     
```js
  "api": "/solr/core", // This is the solr api access that points to your Solr Core 
```
Use [./index.js](./index.js) to configure state of your app (to be moved to configuration)