Run mongodb server:
We need to have mongodb server to connect db. You need to put the mongodb endpoint at TRAINER_MONGODB_URL.
Set the basic environment variables:
The default of BACKEND_URL is http://localhost:3031 when developing. The SECRET_CODE is required to enter when signing up the admin account, please set ANNOTATION_ONLY for annotation only mode.
Here is an example ENV. You can save this in .env file:
TRAINER_MONGODB_URL=mongodb://localhost:6005/trainer
BACKEND_URL=http://localhost:3031
SECRET_CODE=secret_code
ANNOTATION_ONLY=True
Run webpack-dev-server Run the following to bundle files and watch changes
$ npm run build
Run node server: Then, run the following command to start servers
$ npm run start
Every time after you make changes on frontend, refresh the page to see the changes. Every time whe you make changes on the backend, rerun the server to see the changes.
Before push, stop "build" and run the following command to bundle the files in production mode.
$ npm run prepublishOnly
Content type
Image
Digest
Size
454.4 MB
Last updated
over 5 years ago
docker pull convmind/soco-training-studio