Part of a bachelor's thesis exploring the usage of single page applications and JWTs.
A demo can be found on http://notes.lehnerdt.eu/ Use only for testing! Privacy of notes saved cannot be guaranteed.
You need to have PHP, Composer and npm installed on your System.
composer update
to download PHP packagesnpm install
to download JS dependenciesCopy env
to .env
and tailor for your app, specifically the baseURL
and any database settings. As well as setting a JWT secret key JWT_SECRET_KEY
and token validity periods
php spark serve
npm run dev
Build database with
php spark migrate
Add optional sample Data to the Database with
php spark db:seed UserSeeder
php spark db:seed NoteSeeder
php spark db:seed CategorySeeder
For deployment set environment to production
in .env
.
Compile JS with
npm run build
PHP version 7.3 or higher is required, with the following extensions installed:
Additionally, make sure that the following extensions are enabled in your PHP: