mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Updated readme, added devel folder with tests and setup/development manuals
This commit is contained in:
parent
c71eabf54f
commit
0c5ab62a5c
10 changed files with 218 additions and 4 deletions
15
devel/tests/testScripts/postTestData.sh
Executable file
15
devel/tests/testScripts/postTestData.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
url=$(head -n 1 ../serverAddress)
|
||||
echo "Server url: $url"
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "1 param required: json to send to localhost, got $#"
|
||||
else
|
||||
echo sending
|
||||
echo "SENT DATA:"
|
||||
../bin/hr.sh
|
||||
echo "$1"
|
||||
../bin/hr.sh
|
||||
curl -X POST --data "datatoadd=$1" "$url/isAdding"
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue