No description
| assets | ||
| node_modules | ||
| winter | ||
| .gitignore | ||
| database.js | ||
| index.js | ||
| package-lock.json | ||
| package.json | ||
| readme.md | ||
Ew what sick person would write JS willingly??
How to selfhost ts
I may make an install script later but for now:
Download https://git.autizm.us/Polokalap/fityma.store/archive/main.zip
Unzip it
Make a postgresql db with 2 tables: "userbase" and "content".
In "userbase" create:
"usrn": Text
"psswrd": Text
"email": Text
"tkns": Text Array
"w": integer
In "content" create:
"nme": Text
"upldr": Text
"dte": Date
Create a file named config.json in the root directory and set it up.
Template:
{
"server": "",
"port": ,
"dbnme": "",
"name": "",
"psswrd": "",
"google": {
"email": "",
"key": "",
"project": ""
}
}
server: your db's ip
port: your db's port
dbnme: "postgres"
name: your user's name (db user)
passwrd: your db's password
google:
email: the email you get when you set up Google Cloud Vision
key: the key you get
project: the project id you get
if you followed this, do
node .
and it should be running