Sign inSign up

convmind/soco-training-studio

By convmind

•Updated about 5 years ago

Image
0

50K+

convmind/soco-training-studio repository overview

⁠Soco Training Studio

⁠How to start (Annotation only version)

  1. Run mongodb server:

    We need to have mongodb server to connect db. You need to put the mongodb endpoint at TRAINER_MONGODB_URL.

  2. 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
    
  3. Run webpack-dev-server Run the following to bundle files and watch changes

    $ npm run build
    
  4. 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

Tag summary

Content type

Image

Digest

Size

454.4 MB

Last updated

over 5 years ago

docker pull convmind/soco-training-studio