Use PHP 8.2
Copy .env.example
to .env
and enjoy it.
Launch migrations (by default use sqlite database)
./artisan migrate --force
And create user (because frontend need to auth):
./artisan app:register-user {username} {password}
For testing login endpoint use that url:
{{ _.baseUrl }}/api/login
With JSON Body:
{
"username": "your_username",
"password": "your_password"
}
Environment example for Insomnia:
{
"local": {
"username": "your_username",
"password": "your_password",
"url": "http://back.local.dimti.ru"
},
"prod": {
"username": "your_username",
"password": "your_password",
"url": "https://api.cryptomus.dimti.ru"
},
"username": "{{ _.local.username }}",
"password": "{{ _.local.password }}",
"baseUrl": "{{ _.local.url }}"
}
Run test: ./artisan test
Laravel 11: https://laravel.com/docs/11.x/eloquent-factories
Pest: https://pestphp.com/docs/expectations
NodeJS: lts/hydrogen
Install packages: pnpm install
Use pnpm run postinstall
for generate base types
And use pnpm run dev
and default address http://front.local.dimti.ru:30412
(DNS ready to localhost)
Demo available here: https://cryptomus.dimti.ru
EP (Element Plus): https://element-plus.org/en-US/component/table.html#table-column-attributes (Releases: https://github.com/element-plus/element-plus/releases)
Starter Kit: https://github.com/element-plus/element-plus-nuxt-starter
$fetch, useFetch: https://nuxt.com/docs/getting-started/data-fetching#fetch
Mobile breakpoints & SSR & isMounted: https://vueuse.org/core/useMounted/#usemounted
Tailwind CSS & Transition duration: https://tailwindcss.com/docs/transition-duration
Local address: http://front2.local.dimti.ru:30418
Avatar placeholders: https://place-hold.it/100?text=user
Starter Kit: https://github.com/savokiss/nuxt-ui-starter