commit 9601585475abfddab22495b2a789d9b263e4bdc5 Author: Les De Ridder Date: Sat Feb 29 22:49:21 2020 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/LICENSE.html b/LICENSE.html new file mode 100644 index 0000000..ad71d06 --- /dev/null +++ b/LICENSE.html @@ -0,0 +1,10 @@ + + + + + + + +

University of Illinois/NCSA Open Source License

Copyright © 2020, Les De Ridder All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.

+ + diff --git a/generate.fish b/generate.fish new file mode 100755 index 0000000..159164f --- /dev/null +++ b/generate.fish @@ -0,0 +1,24 @@ +#!/usr/bin/fish + +echo 'Generating schema PNG...' +dia -e schema.png source/schema.dia +convert schema.png -bordercolor white -border 20 schema.png + +echo 'Generating HTML...' +for md_path in source/*.md + set output_path (echo $md_path | sed 's_source/__;s/md/html/') + rm -f $output_path + + set page_html (markdown -f +idanchor -squash -html5 -toc $md_path) + + echo '' >> $output_path + echo '' >> $output_path + echo '' >> $output_path + echo '' >> $output_path + echo '' >> $output_path + echo '' >> $output_path + echo '' >> $output_path + echo $page_html >> $output_path + echo '' >> $output_path + echo '' >> $output_path +end diff --git a/index.html b/index.html new file mode 100644 index 0000000..88ba0d4 --- /dev/null +++ b/index.html @@ -0,0 +1,10 @@ + + + + + + + +

luckybooru

luckybooru is a danbooru-style booru written in Crystal with Lucky.

It will be licensed under the University of Illinois/NCSA license.

Status

luckybooru is in the early design stage.

Goals and design principles

Major technologies used

Database schema (WIP)

(database schema image)

This page

Source: git.fuwafuwa.moe/lesderid/luckybooru_info

+ + diff --git a/schema.png b/schema.png new file mode 100644 index 0000000..ef6837e Binary files /dev/null and b/schema.png differ diff --git a/source/LICENSE.md b/source/LICENSE.md new file mode 100644 index 0000000..755b92d --- /dev/null +++ b/source/LICENSE.md @@ -0,0 +1,31 @@ +University of Illinois/NCSA +Open Source License + +Copyright (c) 2020, Les De Ridder +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +* Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + +* Neither the name of luckybooru nor the names of its contributors may be used + to endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. diff --git a/source/index.md b/source/index.md new file mode 100644 index 0000000..2b7da1f --- /dev/null +++ b/source/index.md @@ -0,0 +1,30 @@ +# luckybooru + +luckybooru is a [danbooru](https://danbooru.donmai.us/)-style booru written in Crystal with Lucky. + +It will be licensed under the [University of Illinois/NCSA license](LICENSE.html). + +## Status + +luckybooru is in the early design stage. + +## Goals and design principles + +* Feature parity with danbooru +* Support for various types of media (images, audio, videos, plaintext, Markdown) +* Full support for running in a cluster with live scaling +* All major features should work with *noscript* +* RESTful API + +## Major technologies used + +* [Crystal](https://crystal-lang.org/) +* [Lucky](https://luckyframework.org) + +## Database schema (WIP) + +![(database schema image)](schema.png) + +## This page + +Source: [git.fuwafuwa.moe/lesderid/luckybooru_info](https://git.fuwafuwa.moe/lesderid/luckybooru_info) diff --git a/source/schema.dia b/source/schema.dia new file mode 100644 index 0000000..1acb394 Binary files /dev/null and b/source/schema.dia differ