소스 검색

Upload files to ''

at 11:55 on 27.11.2022
master
uhrenjunge 1 년 전
부모
커밋
c140d74852
3개의 변경된 파일53개의 추가작업 그리고 0개의 파일을 삭제
  1. +28
    -0
      documentation.md
  2. +9
    -0
      index.xhtml
  3. +16
    -0
      main.scm

+ 28
- 0
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

+ 9
- 0
index.xhtml 파일 보기

@@ -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 파일 보기

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

불러오는 중...
취소
저장