diff --git a/documentation.md b/documentation.md new file mode 100644 index 0000000..7e29ad3 --- /dev/null +++ b/documentation.md @@ -0,0 +1,28 @@ +#Moni's simple image hoster +- written 27.11.2022 +Everything in this folder belongs to moni's little image hoster. +It is written by Uhrenmacher for my dear friend Burden (or Moni). +Everything in here is public domain, no rights reserved, under CC0. +Do with it whatever you want. +The official repository is here: +https://git.lain.church/uhrenjunge/dyc_image_uploader +##File included in the project +- data +- data/users.db +- data/posts.db +- img +- img/img{1-4}.jpg +- main.scm +- index.xhtml +- documentation.md +###Data +The data folder is where all the databases are placed in. You may not place anything but "data/users.db" and "data/posts.db" in it. +###data/users.db +This file is a sqlite3 databases contaning all the users and the user's information (hashed password, number of posts). +###data/posts.db +A list of every post on each profile. +###img +folder for the images uploaded +###img/img{1-4}.jpg +Images used for testing and development. Those should be removed as soon as the code is used in production. +###main.scm diff --git a/index.xhtml b/index.xhtml new file mode 100644 index 0000000..6cd80e4 --- /dev/null +++ b/index.xhtml @@ -0,0 +1,9 @@ + + +
+ digital yacht club image hosting +
+ + digital yacht club image hosting + + diff --git a/main.scm b/main.scm new file mode 100644 index 0000000..eeca345 --- /dev/null +++ b/main.scm @@ -0,0 +1,16 @@ +;;NO RIGHTS RESERVED. CC0 Public domain +;;written for Burden +;;simple web server for an image-hosting platform +;;requires chicken scheme interpreter, sqlite3 and openssl +(import + (chicken base) + (chicken io) + spiffy + )) +;;define basic variables +(define default_port 80) +;;startup the server +(define (server_startup) + + (start-server) +)