-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3db1f46
commit 02cdd4e
Showing
12 changed files
with
123 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
venv | ||
sources | ||
uploads | ||
|
||
sources/ | ||
!sources/sample.hackthehill | ||
|
||
uploads/ | ||
!uploads/sample.txt | ||
|
||
__pycache__ | ||
.coverage | ||
.idea |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
""" | ||
Global variables for the project | ||
Since the file contains actual directory names, it must be at the root of backend | ||
""" | ||
|
||
import os.path | ||
|
||
DISCOVERY_PORT = 5000 | ||
CHAT_PORT = 5001 | ||
MAX_UDP_PACKET = 65507 | ||
DISCOVERY_ADDRESS = '192.168.181.255' | ||
|
||
BACKEND_FOLDER = os.path.dirname(os.path.abspath(__file__)) | ||
|
||
UPLOADS_FOLDER = os.path.join(BACKEND_FOLDER, "uploads") | ||
SOURCES_FOLDER = os.path.join(BACKEND_FOLDER, "sources") | ||
CODE_FOLDER = os.path.join(BACKEND_FOLDER, "code") | ||
TEST_FOLDER = os.path.join(BACKEND_FOLDER, "test") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Adding the file just so that sources folder is recognized via github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"header": { | ||
"file_name": "test.txt", | ||
"file_size": 0, | ||
"number_of_blocks": 0, | ||
"block_size": 512 | ||
}, | ||
"blocks": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Adding the file just so that uploads folder is recognized via github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters