From f7cde0cf1eaad5a03553470a3259d64aec94d70b Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 18 Aug 2022 01:54:36 +0600 Subject: i forgor to commit --- README.md | 56 ++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 38 insertions(+), 18 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 622a05a..1546315 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@

- File Hoster! + PictureBin (formerly Dank File Hoster)
wakatime

@@ -24,28 +24,48 @@
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. [ Chatterino 2 (by fourtf, pajlada, and more...)](https://github.com/chatterino/chatterino2): +1. [ 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: | ``/dank_upload | https://hmmtodayiwill.ru/i/dank_upload + | Request URL: | ``/upload | https://i.hmmtodayiwill.ru/upload | Form field: | file | - | Extra Headers: | no-redirect: true | - | Image Link: | ``/i/{name} | https://hmmtodayiwill.ru/i/{name} + | Extra Headers: | `Authorization: ` | 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 -- cgit v1.2.3