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 | преди 5 години | |
public | преди 5 години | |
src | преди 5 години | |
.dockerignore | преди 5 години | |
.editorconfig | преди 5 години | |
.eslintrc.js | преди 5 години | |
.gitignore | преди 5 години | |
Dockerfile_back | преди 5 години | |
Dockerfile_front | преди 5 години | |
LICENSE | преди 5 години | |
README.md | преди 5 години | |
babel.config.js | преди 5 години | |
config.js | преди 5 години | |
docker-compose.frontapp_only.yml | преди 5 години | |
docker-compose.yml | преди 5 години | |
package.json | преди 5 години | |
yarn.lock | преди 5 години |
Travaux développés par Antoine dans le cadre de son stage de DUT2.
PORT=8080 SERVE_CLIENT=true docker-compose up
PORT=8080 SERVE_CLIENT=false docker-compose up
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).
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
Configure the project by modifying config.js.
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 |
yarn run api:start
yarn run api:dev
yarn run api:lint
Files will be built to the dist/
directory.
yarn run app:build
yarn run app:dev
yarn run app:lint