Source code of Flashii in 2015-2017
This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2016-12-09 20:36:26 +01:00
app moved auth into subroute and make logout DELETE 2016-12-09 20:36:26 +01:00
config remove rank based activation 2016-12-07 16:33:26 +01:00
database fix migration and logging out 2016-12-09 00:18:54 +01:00
public remove experimental shit 2016-11-04 18:51:11 +01:00
resources moved auth into subroute and make logout DELETE 2016-12-09 20:36:26 +01:00
store moved storage directories into their own space 2016-12-06 14:45:49 +01:00
.gitattributes my local repository broke so all this shit happened, have a nice day 2015-12-02 15:38:40 +01:00
.gitignore moved storage directories into their own space 2016-12-06 14:45:49 +01:00
.styleci.yml use psr2 2015-10-30 17:42:24 +01:00
build.sh auto parse code blocks 2016-12-09 17:29:32 +01:00
composer.json image stuff 2016-11-04 20:48:17 +01:00
composer.lock quick fix + yarn 2016-12-04 15:26:48 +01:00
LICENSE r20151231, happy new year to whoever reads this! 2015-12-31 15:51:01 +01:00
mahou cleanup 2016-12-04 15:55:53 +01:00
package.json auto parse code blocks 2016-12-09 17:29:32 +01:00
README.md quick fix + yarn 2016-12-04 15:26:48 +01:00
routes.php moved auth into subroute and make logout DELETE 2016-12-09 20:36:26 +01:00
sakura.php remove experimental shit 2016-11-04 18:51:11 +01:00
server.php make dialogues more "appealing" 2016-12-09 00:10:56 +01:00
utility.php type signatures a la 7.1 2016-12-04 17:33:52 +01:00
yarn.lock auto parse code blocks 2016-12-09 17:29:32 +01:00

Sakura

StyleCI SensioLabsInsight

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

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.