Skip to content

Instantly share code, notes, and snippets.

@AhmedUKamel
Created December 19, 2023 23:24
Show Gist options
  • Select an option

  • Save AhmedUKamel/edad23d182d10f0108de71ffa4ecb975 to your computer and use it in GitHub Desktop.

Select an option

Save AhmedUKamel/edad23d182d10f0108de71ffa4ecb975 to your computer and use it in GitHub Desktop.

Git

git clone https://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@github.com/AhmedUKamel/bsu-fcai-wms-server.git

MySql

CREATE USER 'wms_user'@'localhost' IDENTIFIED BY 'wms_password_$404';
GRANT ALL PRIVILEGES ON * . * TO 'wms_user'@'localhost';
FLUSH PRIVILEGES;
CREATE DATABASE wms_database;

Java

Scripts

  • Create start script in configuration directory
echo java -jar path\to\bsu-fcai-wms-server\warehouse_management_system.jar >> start.cmd
  • Run start.cmd on the start up
    • win + R
    • shell:startup then enter
    • Copy/Paste start.cmd
  • Create stop script in configuration directory
echo taskkill /F /IM java.exe /T >> stop.cmd
  • Create update script in configuration directory
echo path\to\stop.cmd               >> update.cmd
echo cd path\to\bsu-fcai-wms-server >> update.cmd
echo git pull                       >> update.cmd
echo path\to\start.cmd              >> update.cmd
  • Create shortcuts with icons in bsu-fcai-wms-server directory
  • Add shortcuts to app menu
    • Make directory 'Warehouse Management System' in C:\ProgramData\Microsoft\Windows\Start Menu\Programs
    • Copy/Paste shortcuts
  • Finally hide configuration directory

Open Website

The end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment