Commit 32b6d0d8 authored by Bruno López Trigo's avatar Bruno López Trigo

Merge branch 'ExpliClas-v2' of...

Merge branch 'ExpliClas-v2' of https://gitlab.citius.usc.es/bruno.lopez.trigo/ExpliClas-TFG into ExpliClas-v2
parents b907d039 98e28194
......@@ -87,9 +87,18 @@ servers = {
- The name of the war implies changes to the previous URLs, for example if war is _ExpliClas.war_ the url would be _http://localhost:8080/ExpliClas/api_.
### Building and deploying the API with Eclipse
Prerequisite: install [Eclipse](https://www.eclipse.org/downloads/) compatible with your Apache Tomcat version
1. Import / Maven / existing Maven project ([ExpliClas API Maven Project](/codigo/expliclas-api) directory)
2. Window / Preferences / Server / Runtime environments / Add / Tomcat 9.0
3. Run / Run as / run on server
### Building and deploying the demo web service
If you have changed the API base URL, the go to the [demo config](/codigo/expliclas/src/config.js) to be sure API URL's match.
If you have changed the API base URL, then go to the [demo config](/codigo/expliclas/src/config.js) to be sure API URL's match.
```javascript
export const API_ROOT = "http://localhost:8080/api";
......@@ -98,7 +107,7 @@ export const API_DOC = "http://localhost:8080/";
1. Go to [ExpliClas Web Demo](/codigo/expliclas) and run `npm install` to get all dependencies.
2. Run `npm install -g serve` to install a NodeJS server for deployment.
3. Run `npm run build` to generate a web service ready to production.
3. Run `npm run build` to generate a web service ready to production. (in windows you may need to run first `npm install react-scripts -g`)
4. Run `serve -s -l PORT build` to run the web service in the specified PORT.
#### NOTES:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment