From 04626fd7ef8c34d6012e47d4ceaa9c236e6008dd Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Thu, 22 Sep 2022 14:06:05 +0200 Subject: [PATCH 1/2] Add: env sample file --- env-sample | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 env-sample diff --git a/env-sample b/env-sample new file mode 100644 index 0000000..8debc22 --- /dev/null +++ b/env-sample @@ -0,0 +1,9 @@ +# True for development, False for production +DEBUG=True + +# Deployment SERVER address +SERVER=archivist.aroy-art.com + +# Used for CDN (in production) +# No Slash at the end +ASSETS_ROOT=/static/assets From f17fc59b0a8b45c92d6883e597c840de882f154b Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Thu, 22 Sep 2022 14:06:56 +0200 Subject: [PATCH 2/2] Add: Dev start help --- README.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/README.md b/README.md index 66907c3..be8e9a4 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,46 @@ --- My try to make a Social media archiving web tool with django and gallery-dl + + + + +--- +## Development + +*Note!* Instructions are made for a modern linux environment. + + * **Step 1:** Clone repo +```bash +git clone https://git.aroy-art.com/Aroy/Gallery-Archivist.git +``` + +* **Step 2:** Change dir to the new cloned repo +```bash +cd Gallery-Archivist +``` + +* **Step 3:** Make a python environment +```bash +python3 -m venv venv +``` + +* **Step 4:** Activate the new python environment +```bash +source ./venv/bin/activate +``` + +* **Step 5:** Install python dependencies +```bash +pip install -r requirements.txt +``` + +* **Step 6:** Copy environment config file and change it to your liking +```bash +cp env-sample .env +``` + +* **Step 7:** Run django server +```bash +python3 archivist/manage.py runserver +``` \ No newline at end of file