- Install dependencies
- Write configuration files
- Check styles and pattern rules (optional)
- Run the app
- Build Docker image
- Run Docker app ( + MariaDB )
npm install
Configuration for YAS-backend app (necessary)
Run
cp ./src/config/config.json.example ./src/config/config.json
and then modify configuration values.
Configuration for MariaDB Docker (optional : if you want to use MariaDB container)
Run
cp ./db/db_secret/mysql_root.secret.example ./db/db_secret/mysql_root.secret
and then modify root password for your MariaDB.
Run
cp ./db/db_init/init.sql.example ./db/db_init/init.sql
and then modify DB initializing command (ex. create database).
After dependencies are installed (Eslint is included in dependencies)
npx eslint .
npm run start
docker build -t YOUR_IMAGE_NAME .
Set environment and setting in docker-compose.yml file, then run
docker-compose up