The quick and easy dictionary builder for constructed languages. https://lexicon.ga
Go to file
Robbie Antenesse a62d444b5b Improve ad shuffling 2019-06-07 23:12:47 -06:00
src Improve ad shuffling 2019-06-07 23:12:47 -06:00
.gitignore Write and test migration script; Update readme 2019-06-07 17:00:30 -06:00
.htmlnanorc Prevent Parcel from removing ids from SVGs 2019-06-05 17:29:16 -06:00
.postcssrc Set up autoprefixer for css 2019-05-07 15:55:55 -06:00
README.md Write and test migration script; Update readme 2019-06-07 17:00:30 -06:00
ads.json Update ads and announcements 2019-06-07 21:50:15 -06:00
advertising.html Add logo and favicon; style logo for each theme 2019-06-03 16:38:31 -06:00
composer.json Add composer and some things to help with dev + basics 2019-05-13 17:18:31 -06:00
composer.lock Add composer and some things to help with dev + basics 2019-05-13 17:18:31 -06:00
offline.html Add UpUp for offline mode; Update Readme for UpUp 2019-06-05 17:34:56 -06:00
package.json Automate UpUp asset reference via router.php 2019-06-06 15:08:00 -06:00
template-index.html Automate UpUp asset reference via router.php 2019-06-06 15:08:00 -06:00
template-passwordreset.html Finish up password reset 2019-06-05 12:45:05 -06:00
template-view.html Rename view.html for the router to template-view.html 2019-06-05 12:42:39 -06:00
yarn.lock Add UpUp for offline mode; Update Readme for UpUp 2019-06-05 17:34:56 -06:00

README.md

Lexiconga

This is the light-as-possible rewrite of Lexiconga.

Installation

  1. Clone and run yarn and composer install to install dependencies.
  2. Import src/structure.sql into a database called 'lexiconga' on your MariaDB server to get the database structure.
  3. Copy src/php/api/config.php.changeme to src/php/api/config.php and update the values within to enable connections to your lexiconga database.

Requirements

Development

npm start bundles and watches frontend and backend changes. Set up a junction link to dist from the root of your php-processing web server.

It's less useful, but npm run serve-frontend-only will bundle and serve only the front end stuff from localhost:1234. The bundled files all still get bundled into dist.

Production

npm run bundle bundles and minifies the frontend stuff and also copies the backend stuff to dist. Be sure to run npm run clear to delete the contents of dist and .cache before using npm run bundle to make sure you don't get old dev versions of the bundled code included in your upload.

Migration

There is a script called src/php/api/migrate.php.changeme that can be used to help with the migration process from a version1 Lexiconga database into a master database. Note: Migration is intended only for migrating from an old server to a freshly-installed/empty new database. To use this, copy src/php/api/migrate.php.changeme to migrate.php somewhere in the version1 project (probably in /php) and copy the same to /api/migrate.php in your master project, making sure that all the variables for referencing the databases are correct.

Visit migrate.php on your version1 server with ?outgoing=true set in order to begin the transfer. The other server's migrate.php will receive an "incoming" request multiple times, and your screen will display messages as it works.

DELETE THESE migrate.php FILES IMMEDIATELY AFTER MIGRATION IS COMPLETE!.