build_and_run.bat 551 B

123456789101112131415161718192021222324252627282930
  1. @echo off
  2. where mongo
  3. IF %ERRORLEVEL% NEQ 0 (
  4. echo "mongo command is not available, please make sure mongodb is installed and added to the system path."
  5. exit /b 1
  6. )
  7. mongo --eval "db.stats()"
  8. IF %ERRORLEVEL% NEQ 0 (
  9. echo "mongodb not running"
  10. exit /b 1
  11. ) else (
  12. echo "mongodb is online..."
  13. )
  14. echo building MineCase...
  15. pushd src
  16. dotnet restore
  17. dotnet build -c debug
  18. popd
  19. echo start MineCase.Server...
  20. pushd src\MineCase.Server
  21. start dotnet run
  22. popd
  23. echo start MineCase.Gateway...
  24. pushd src\MineCase.Gateway
  25. start dotnet run
  26. popd