Commit 2551e563 authored by Kapilraj Thangeswaran's avatar Kapilraj Thangeswaran

Mise à jour readme et correction exercise.xsl

parent bbb121ee
...@@ -12,16 +12,29 @@ Kapilraj Thangeswaran ...@@ -12,16 +12,29 @@ Kapilraj Thangeswaran
This module is able to extract data from a file in Hdoc format and insert them into MongoDB. This module is able to extract data from a file in Hdoc format and insert them into MongoDB.
## Dependencies ## Dependencies
In order to work properly this module needs In order to work properly this module needs :
- In order to make this module work you have to download and install Node.js from the [Node.js download page](https://nodejs.org/en/). - to download and install Node.js
- If needed, download and install MongoDB from the [MongoDB download page](https://www.mongodb.com/download-center#community). For windows :
- from the [Node.js download page](https://nodejs.org/en/)
For linux (instruction for debian 8, may vary depending on your distrbution) execute the followings commands :
- `su`
- `apt install nodejs`
- `apt install node`
- `apt install npm`
- to download and install MongoDB
For Windows :
- from the [MongoDB download page](https://www.mongodb.com/download-center#community)
For linux :
- `su & apt install mongodb`
## Instructions ## Instructions
1. Install dependencies 1. Install dependencies
2. Add all your hdoc documents in an "input" folder 2. Add all your hdoc documents in an "input" folder
3. Add or edit "config.xml" file in "input" folder (for more details, please check "Input configuration") 3. Add or edit "config.xml" file in "input" folder (for more details, please check "Input configuration")
4. Edit "config.json" file from "mongo" folder (for more details, please check "Mongo configuration") 4. Edit "config.json" file from "mongo" folder (for more details, please check "Mongo configuration")
5. Execute run.bat or run.sh 5. Make sure that MongoDB is running (`mongod.exe --rest --jsonp` command from "MongoDB/Server/3.2/bin" folder)
6. Execute run.bat or run.sh
## Web ## Web
This module provides a Web application to access MongoDB and execute simples requests. This module provides a Web application to access MongoDB and execute simples requests.
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
} }
</xsl:template> </xsl:template>
<xsl:template match="div[@data-hdoc-type='question']" > <xsl:template match="div[@data-hdoc-type='question'][position() != last()]" >
{ {
<xsl:apply-templates select="div[@data-hdoc-type='description']"/> <xsl:apply-templates select="div[@data-hdoc-type='description']"/>
<xsl:apply-templates select="div[@data-hdoc-type='solution']"/> <xsl:apply-templates select="div[@data-hdoc-type='solution']"/>
......
...@@ -12,18 +12,31 @@ Kapilraj Thangeswaran ...@@ -12,18 +12,31 @@ Kapilraj Thangeswaran
This module is able to extract data from a file in Opale format and insert them into MongoDB. This module is able to extract data from a file in Opale format and insert them into MongoDB.
## Dependencies ## Dependencies
In order to work properly this module needs In order to work properly this module needs :
- In order to make this module work you have to download and install Node.js from the [Node.js download page](https://nodejs.org/en/).
- If needed, download and install MongoDB from the [MongoDB download page](https://www.mongodb.com/download-center#community).
- [`opale_to_hdoc`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/opale_to_hdoc) (Opale to Hdoc conversion) - [`opale_to_hdoc`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/opale_to_hdoc) (Opale to Hdoc conversion)
- [`hdoc_to_mongo`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_mongo) (Hdoc to Mongo conversion) - [`hdoc_to_mongo`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_mongo) (Hdoc to Mongo conversion)
- to download and install Node.js
For windows :
- from the [Node.js download page](https://nodejs.org/en/)
For linux (instruction for debian 8, may vary depending on your distrbution) execute the followings commands :
- `su`
- `apt install nodejs`
- `apt install node`
- `apt install npm`
- to download and install MongoDB
For Windows :
- from the [MongoDB download page](https://www.mongodb.com/download-center#community)
For linux :
- `su & apt install mongodb`
## Instructions ## Instructions
1. Install dependencies 1. Install dependencies
2. Add all your hdoc documents in an "input" folder 2. Add all your hdoc documents in an "input" folder
3. Add or edit "config.xml" file in "input" folder (for more details, please check "Input configuration") 3. Add or edit "config.xml" file in "input" folder (for more details, please check "Input configuration")
4. Edit "config.json" file from "mongo" folder in "hdoc_to_mongo" module (for more details, please check "Mongo configuration") 4. Edit "config.json" file from "mongo" folder in "hdoc_to_mongo" module (for more details, please check "Mongo configuration")
5. Execute run.bat or run.sh 5. Make sure that MongoDB is running (`mongod.exe --rest --jsonp` command from "MongoDB/Server/3.2/bin" folder)
6. Execute run.bat or run.sh
## Input configuration ## Input configuration
You can add or edit "config.xml" in "input" folder to provide more information about your documents. You can add or edit "config.xml" in "input" folder to provide more information about your documents.
......
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