Bladeren bron

Upload files to ''

at 11:55 on 27.11.2022
master
uhrenjunge 1 jaar geleden
bovenliggende
commit
c140d74852
3 gewijzigde bestanden met toevoegingen van 53 en 0 verwijderingen
  1. +28
    -0
      documentation.md
  2. +9
    -0
      index.xhtml
  3. +16
    -0
      main.scm

+ 28
- 0
documentation.md Bestand weergeven

@@ -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
- 0
index.xhtml Bestand weergeven

@@ -0,0 +1,9 @@
<!doctype html>
<html>
<header>
digital yacht club image hosting
</header>
<body>
digital yacht club image hosting
</body>
</html>

+ 16
- 0
main.scm Bestand weergeven

@@ -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)
)

Laden…
Annuleren
Opslaan