Synthesis Image Noise Detection on Distributed Data : A web app to collect data on noise detection by humans on images. https://diran.univ-littoral.fr/doc

Jérôme BUISINE f6d86c40dc Add of dynamic PORT use for client and back/client; Docker's separation 5 年之前
api f65a1d3526 Exported functions to route files 5 年之前
public 6c62d244ef init 5 年之前
src e8d1e55842 Added development environment 5 年之前
.dockerignore f6d86c40dc Add of dynamic PORT use for client and back/client; Docker's separation 5 年之前
.editorconfig 6c62d244ef init 5 年之前
.eslintrc.js e8d1e55842 Added development environment 5 年之前
.gitignore 5239a3a751 Server config + performance improvements. Better readme 5 年之前
Dockerfile_back f6d86c40dc Add of dynamic PORT use for client and back/client; Docker's separation 5 年之前
Dockerfile_front 69227fcd67 Update of documenation and docker-compose 5 年之前
LICENSE 90a7f736ab Added readme and mit license 5 年之前
README.md f6d86c40dc Add of dynamic PORT use for client and back/client; Docker's separation 5 年之前
babel.config.js 6c62d244ef init 5 年之前
config.js f6d86c40dc Add of dynamic PORT use for client and back/client; Docker's separation 5 年之前
docker-compose.frontapp_only.yml f6d86c40dc Add of dynamic PORT use for client and back/client; Docker's separation 5 年之前
docker-compose.yml f6d86c40dc Add of dynamic PORT use for client and back/client; Docker's separation 5 年之前
package.json 5239a3a751 Server config + performance improvements. Better readme 5 年之前
yarn.lock 5239a3a751 Server config + performance improvements. Better readme 5 年之前

README.md

Antoine_Internship

Travaux développés par Antoine dans le cadre de son stage de DUT2.

Run as a Docker instance

Run server + client

PORT=8080 SERVE_CLIENT=true docker-compose up

Run only the server

PORT=8080 SERVE_CLIENT=false docker-compose up

Run only the client

PORT=8080 docker-compose -f docker-compose.frontapp_only.yml up

To change the port the server is running on set the environnements variables if necessary (see project setup part).

Run on the file system

Project setup

Install project's dependencies.

yarn install

If this is a production build, set the NODE_ENV environment variable to production to enhance performance.

On Linux hosts :

export NODE_ENV=production

On Windows hosts :

SET NODE_ENV=production

Configuration

Configure the project by modifying config.js.

Configuration options

Option Default value Description
apiPrefix /api The url prefix for the API
serverPort 5000 The port used by the server
imagesPath images The directory where the images are stored
serveClient true Should the server serve client files from the /dist directory

API

Run the server

yarn run api:start

Run the server with hot-reload for development

yarn run api:dev

Automatically fix the API code syntax with ESLint

yarn run api:lint

Client

Compile and minify for production

Files will be built to the dist/ directory.

yarn run app:build

Run a hot-reload server for client development

yarn run app:dev

Automatically fix the client code syntax with ESLint

yarn run app:lint

License

The MIT license