Source code of Flashii in 2015-2017
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 
flash d6e6fdbdd2 Update 'LICENSE' 5 months ago
app use null instead of an exception again 5 years ago
config add forum cache toggle 5 years ago
database remove osu leaderboard again 5 years ago
public filename fixes 5 years ago
resources local stuff 4 years ago
store update gitignore 5 years ago
.gitattributes Huge Database refactor 6 years ago
.gitignore update gitignore 5 years ago
.styleci.yml use psr2 6 years ago
LICENSE Update 'LICENSE' 5 months ago
README.md Update README.md 3 years ago
build.sh auto parse code blocks 5 years ago
composer.json image stuff 5 years ago
composer.lock library updates 5 years ago
mahou cleanup 5 years ago
package.json auto parse code blocks 5 years ago
routes.php hide the premium page for now 5 years ago
sakura.php remove experimental shit 5 years ago
server.php make dialogues more "appealing" 5 years ago
utility.php use null instead of an exception again 5 years ago
yarn.lock auto parse code blocks 5 years ago

README.md

Sakura

2015-2017 source code of Flashii, once again open source

Has been superseded by Misuzu

Original README

StyleCI

Requirements

  • PHP 7.1 or an equivalent environment
  • MySQL 5.7 is recommended, you can use any database engine compatible with illuminate/database in theory though.
  • Composer
  • node.js (for the typescript and less compilers)
  • Yarn because npm is trash

Also as a sidenote, I highly recommend only running Sakura with x64 PHP.

Installing

Backend

Copy config.example.ini, set everything up to your liking (database is most important). I'd also recommend setting show_errors to true for development. Then run the following commands in the root.

composer install
php mahou database-install
php mahou database-migrate
php mahou setup

After that you can either use php mahou serve to use the built in development server or serve the public folder through your webserver of choice.

Frontend

To compile the LESS and TypeScript assets you need to have the individual compilers installed, both are available through yarn and can be installed with the following command:

yarn global add less typescript

After that install the required libraries by running yarn and from then on to compile the files you need to run build.sh.

If your editor yells at you that it can't find certain namespaces try running build.sh since that generates the required typings (.d.ts files).

Contributing

Right now I'm not accepting big PRs because of a set of big things not being fully implemented yet, bug fix PRs are more than welcome though!

License

Sakura is licensed under the Apache License version 2. Check the LICENSE file for the full thing.