This template aims at helping you started developing with NodeJS + Express for the MorphoBank Service Application.
cp db-dev/development.env.template db-dev/.env
Then fill in all the variable values
cp development.env.template .env
Then fill in all the variable values. Note the database DB_USER and DB_PASSWORD value shall be the same as the value we defined in the db-dev/.env file for the local database
The service container is accessible on http://localhost:8080/ The database container is accessible on http://127.0.0.1:3306/
docker-compose -f docker-compose.dev.yml up
docker-compose -f docker-compose.dev.yml up --build
docker stop mb4-service-container-dev
docker rm mb4-service-container-dev
docker-compose -f docker-compose.dev.yml build --no-cache
docker-compose -f docker-compose.dev.yml up
mysql -h 127.0.0.1 -u morphobank -p morphobank < {database_dump_file}
Then enter the password you defined in the db-dev/.env file
mysql -h 127.0.0.1 -u morphobank -p
Then enter the password you defined in the db-dev/.env file
Before launching the application, make sure you've created a shared network as instructed in mb4-proxy project The service container is accessible on http://localhost:81/services/ and http://localhost:8080/ The database container is accessible on http://127.0.0.1:3306/
docker-compose -f docker-compose.local.yml up
docker-compose -f docker-compose.local.yml up --build
docker stop mb4-service-container-dev
docker rm mb4-service-container-dev
docker-compose -f docker-compose.local.yml build --no-cache
docker-compose -f docker-compose.local.yml up
cp config/config.json.template config/config.json
Then fill in all the variable values
docker exec -it mb4-service-container-dev /bin/bash
npx sequelize-cli db:migrate
cp production.env.template .env
Then fill in all the variable values
npm run build
docker build -t mb4-service:<version_number> .
The container is accessible on http://localhost:4001/
docker-compose up --build