Upload files to ''
at 11:55 on 27.11.2022
This commit is contained in:
parent
6af43b9a95
commit
c140d74852
28
documentation.md
Normal file
28
documentation.md
Normal file
@ -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
|
9
index.xhtml
Normal file
9
index.xhtml
Normal file
@ -0,0 +1,9 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<header>
|
||||
digital yacht club image hosting
|
||||
</header>
|
||||
<body>
|
||||
digital yacht club image hosting
|
||||
</body>
|
||||
</html>
|
16
main.scm
Normal file
16
main.scm
Normal file
@ -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)
|
||||
)
|
Loading…
Reference in New Issue
Block a user