mostafashawki / instructions-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructions App

Initial setup with Docker-Compose

  1. Install all dependencies in all sub folders with npm install or use this script:
$ ./npm_install_all.sh
  1. Start the docker-compose environment:
$ docker-compose up -d
  1. Run the database seeder:
$ docker-compose exec backend npm run db:seed

The frontend can be opened at the URL http://rddms.localhost/.

Initial setup without Docker-Compose

  1. Install all dependencies in all sub folders with npm install or use this script:
$ ./npm_install_all.sh
  1. Add a MongoDB connection string in file backend/.env (see example in backend/.env-example).

  2. Start the backend:

$ cd backend
$ npm run dev
  1. Run the database seeder:
$ cd backend
$ npm run db:seed
  1. Install Quasar CLI
$ npm install -g @quasar/cli
  1. Start the frontend:
$ cd frontend
$ quasar dev

The frontend can be opened at the URL http://localhost:8080/.

Backend Tests

Without Docker-Compose

$ cd backend
$ npm run test

With Docker-Compose

Run all tests:

$ docker-compose -f docker-compose.test.yml run backend

Run only a single test, e.g. loads-upload:

$ docker-compose -f docker-compose.test.yml run backend loads-upload

Watch tests:

$ docker-compose -f docker-compose.test.yml run backend --watchAll

About


Languages

Language:JavaScript 45.2%Language:Vue 34.8%Language:HTML 9.9%Language:Pug 5.8%Language:SCSS 1.6%Language:CSS 1.6%Language:Dockerfile 0.7%Language:Shell 0.5%