PictureBin (formerly Dank File Hoster)
wakatime

A small file hoster on ExpressJS. ## Dependencies: 1. Node.js 2. NPM 3. Typescript ## Installation: 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 (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: | ``/upload | https://i.hmmtodayiwill.ru/upload | Form field: | file | | Extra Headers: | *(If you want to upload pictures under your account, you need to log in with your Twitch Account [here](https://i.hmmtodayiwill.ru/) and get your auth key from your profile)* `Authorization: ` | Authorization: SUZZT1VTRUVUSElTVklWT05aVUxVTA==