summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md56
1 files changed, 38 insertions, 18 deletions
diff --git a/README.md b/README.md
index 622a05a..1546315 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@
<div align="center">
<h1>
- <img src="./static/webimg/favicon.png" width=32> File Hoster!
+ <img src="./static/img/favicon.png" width=32> <b>Pic</b>ture<b>Bin</b> <i>(formerly Dank File Hoster)</i>
<br>
<a href="https://wakatime.com/badge/user/09f67b1c-0691-482a-a1d4-e4751e6962de/project/eda75115-4dad-4ada-995a-f1379687f257"><img src="https://wakatime.com/badge/user/09f67b1c-0691-482a-a1d4-e4751e6962de/project/eda75115-4dad-4ada-995a-f1379687f257.svg?style=plastic" alt="wakatime"></a>
</h1>
@@ -24,28 +24,48 @@
</div>
A small file hoster on ExpressJS.
+## Dependencies:
+1. Node.js
+2. NPM
+3. Typescript
+
## Installation:
-1. Use the script...
- 1. as a standalone app:
- ```bash
- $ git clone https://github.com/notdankenough/fh.git
- $ cd fh
- $ npm install
- $ npm run start
- ```
- 2. as a module for your project:
- ```bash
- $ git submodule add https://github.com/notdankenough/fh.git
- ```
- and you can import it as: `import SRouter from "./fh/router";`
+1. Install from Git repository:
+```bash
+$ git clone https://github.com/notdankenough/picbin
+$ cd picbin
+```
+2. Install the Node.js modules:
+```bash
+$ npm install
+```
+3. Run Prisma migrations. This will create the database:
+```bash
+$ npx prisma migrate dev
+```
+4. Build the app:
+```bash
+$ npm run build
+```
+5. Generate the configuration files. The program will create a `config.ini` file and you will need to insert the necessary values into their fields:
+```bash
+$ npm run init
+```
+6. Run the app:
+```bash
+$ npm run start
+```
+7. ???
+8. PROFIT! Now you have your own dank image hoster.
## Use in other tools:
-1. [ <img src="https://camo.githubusercontent.com/6ca305d42786c9dbd0b76f5ade013601b080d71a598e881b4349dff2eafae6c7/68747470733a2f2f666f757274662e636f6d2f696d672f63686174746572696e6f2d69636f6e2d36342e706e67" width=24> Chatterino 2 (by fourtf, pajlada, and more...)](https://github.com/chatterino/chatterino2):
+1. [ <img src="https://camo.githubusercontent.com/6ca305d42786c9dbd0b76f5ade013601b080d71a598e881b4349dff2eafae6c7/68747470733a2f2f666f757274662e636f6d2f696d672f63686174746572696e6f2d69636f6e2d36342e706e67" width=24> Chatterino (by fourtf, pajlada, and more...)](https://github.com/chatterino/chatterino2):
1. Go to `Settings -> External Tools -> Image Uploader` and paste the values in the relevant fields:
| Field | Value | Example |
| ---- | ------ | ------- |
- | Request URL: | `<YOUR_DOMAIN>`/dank_upload | https://hmmtodayiwill.ru/i/dank_upload
+ | Request URL: | `<YOUR_DOMAIN>`/upload | https://i.hmmtodayiwill.ru/upload
| Form field: | file |
- | Extra Headers: | no-redirect: true |
- | Image Link: | `<YOUR_DOMAIN>`/i/{name} | https://hmmtodayiwill.ru/i/{name}
+ | Extra Headers: | `Authorization: <some Base64 shit>` | Authorization: SUZZT1VTRUVUSElTVklWT05aVUxVTA==
+
+> * If you want to upload pictures under your account, you need to log in with your Twitch account [here](https://i.hmmtodayiwill.ru/). \ No newline at end of file