DD-CODE web interface
Project setup
yarn install
Compiles and hot-reloads for development
yarn run serve
Compiles and minifies for production
yarn run build
Copy all the files under /dist to the web folder
cp -R dist/* [your_webserver_root]
Run your tests
yarn run test
Lints and fixes files
yarn run lint
Customize configuration
- It requires proper settings in
src/components/js/const.js
.
export const host = '/api';
export const devHost = '/api';
export const apikey = '<your api key>'
References:
- https://github.com/miaolz123/vue-markdown
- Star rating system: https://karol-f.github.io/vue-custom-element/#/demos/events
Production
How to apply Dev branch into Production
Server
- Create an increment version of tag in https://git.mpi-cbg.de/scicomp/scidev_team/dd-code/-/tags
- Make new merge request from
develop
branch intomaster
in https://git.mpi-cbg.de/scicomp/scidev_team/dd-code/-/merge_requests/new - Accept the merge request
- In
/local/dd-code-api
git pull
flask run --host=0.0.0.0 --port=5001
- In
/home/moon/backup
mongodump --host=ddcode-srv1 --port=27018 --db=ddcode
mv dump dump-<date>
mongorestore --port=27017 --drop
Client
- For production,
git checkout master
,yarn build
anddeploy
- For develop,
git checkout develop
,yarn build-dev
anddeploy-dev