|
@@ -1,12 +1,20 @@
|
|
|
-# Antoine_Internship
|
|
|
+# SIN3D
|
|
|
+> Synthesis Image Noise Detection on Distributed Data (SIN3D)
|
|
|
+
|
|
|
A web app to collect data on noise detection by humans on images.
|
|
|
|
|
|
## Download project
|
|
|
```sh
|
|
|
-git clone https://gogs.univ-littoral.fr/Prise3D/Antoine_Internship.git
|
|
|
-cd Antoine_Internship
|
|
|
+git clone https://gogs.univ-littoral.fr/Prise3D/SIN3D.git
|
|
|
+cd SIN3D
|
|
|
```
|
|
|
|
|
|
+## Developer documentation
|
|
|
+See [`/DOCUMENTATION`](./DOCUMENTATION).
|
|
|
+
|
|
|
+## Data extraction
|
|
|
+You can use the [SIN3D-data-extract](https://gogs.univ-littoral.fr/Prise3D/SIN3D-data-extract) library to easily extract data from this application database.
|
|
|
+
|
|
|
## Run as a Docker instance
|
|
|
### Configure application
|
|
|
Use the following environment variables to configure the application.
|
|
@@ -16,7 +24,7 @@ Use the following environment variables to configure the application.
|
|
|
| `PORT` | `5000` | The port used by the started application | ✅ | ✅ |
|
|
|
| `SERVE_CLIENT` | `true` | Should the server serve client (Fully local application) | ✅ | ⬜️ |
|
|
|
| `IMAGES_PATH` | `./images` | The directory where the images are stored (absolute path if changed ⚠️) | ✅ | ⬜️ |
|
|
|
-| `MONGO_URI` | `mongodb://localhost/webexpe` | MongoDB database connection URI | ✅ | ⬜️ |
|
|
|
+| `MONGO_URI` | `mongodb://localhost/sin3d` | MongoDB database connection URI | ✅ | ⬜️ |
|
|
|
|
|
|
Configure more deeply the way the app works by modifying *[config.js](config.js)*.
|
|
|
|
|
@@ -25,7 +33,7 @@ Configure more deeply the way the app works by modifying *[config.js](config.js)
|
|
|
| `apiPrefix` | `/api` | The url prefix for the API |
|
|
|
| `imageServedUrl` | `/api/images` | The url prefix from where the images are served |
|
|
|
| `serverPort` | `5000` | The port used by the server |
|
|
|
-| `mongoDatabaseURI` | `mongodb://localhost/webexpe` | MongoDB database connection URI |
|
|
|
+| `mongoDatabaseURI` | `mongodb://localhost/sin3d` | MongoDB database connection URI |
|
|
|
| `imagesPath` | `./images` | The directory where the images are stored |
|
|
|
| `serveClient` | `true` | Should the server serve client files from the `/dist` directory |
|
|
|
| `fileNameConvention` | `/^(.*)?_([0-9]{2,})\.(.*)$/` | File name convention for images |
|
|
@@ -35,16 +43,6 @@ Configure more deeply the way the app works by modifying *[config.js](config.js)
|
|
|
| `logger` | Logs : `logs/server.combined.log` Errors : `logs/server.error.log` | Default application logger |
|
|
|
| `dbLogger` | Logs : `logs/db.log` Errors : `logs/db.error.log` | Database logger configuration |
|
|
|
|
|
|
-### Configure experiments
|
|
|
-If you want to use the default experiments configurations, you can skip this part, the Dockerfile does it for you.
|
|
|
-
|
|
|
-You can modify the configuration for each mixins, experiments or scene. To do so, you first need to initialize experiment configurations first.
|
|
|
-```sh
|
|
|
-cp -r experimentConfig.default experimentConfig
|
|
|
-```
|
|
|
-You can modify the configuration for each mixins, experiments or scene by modifying files in the newly created *`./experimentConfig`* directory.
|
|
|
-You configuration will be copied in the Docker instance.
|
|
|
-
|
|
|
### Run server + client
|
|
|
Linux
|
|
|
```sh
|
|
@@ -165,7 +163,7 @@ The `docker-compose` script will automatically run tests. Use the following comm
|
|
|
yarn test
|
|
|
```
|
|
|
|
|
|
-## Documentation
|
|
|
+## API Documentation
|
|
|
The `docker-compose` script will automatically build the API documentation. Use the following command to build it by hand.
|
|
|
```sh
|
|
|
yarn doc
|