Skip to content

Development scripts

Roni Juntunen edited this page Dec 14, 2019 · 1 revision

Development scripts

Development scripts main purpose is to run application without Docker to make debugging easier. All development scripts may be found from /dev_scripts folder. Before using any of these scripts please run npm install in backend and frontend folders.

Development scripts

  • clean_start.sh
    • This is very powerful script. It resets docker machine wide and then starts server normally. USE WITH GREAT CAUTION
  • start_dev.sh
    • This scripts starts database inside Docker container and frontend without Docker in the background using GNU screen. Screen must be installed before using this tool. Console output from frontend may be accessed with command screen -r front and database console may be accessed with command screen -r db
  • stop_dev.sh
    • Stops all development servers started by start_dev.sh
  • start_backend.sh
    • Starts backend without container as a root since normal users can't open server on port 80. Log may be accessed using screen -r backend command.
  • stop_backend.sh
    • Stops development backend servers.
  • curl_posts.sh
    • Has many good curl examples for api testing. Use file as a model for your own curl tests.
  • test_backend.sh
    • More information about this script may be found in Backend test site

.vscode

.vscode folder has full debugging configuration for Visual Studio Code IDE. With default configurations full graphical debugger may be used for both frontend and backend. Actually even python script debugging is fully configured in the folder.

Clone this wiki locally