designtopack/README.md

26 lines
1.1 KiB
Markdown
Raw Normal View History

2024-07-10 16:37:24 +02:00
The project is based on [Kirby CMS](https://getkirby.com), [Vite](https://vitejs.dev/) + [Vue](https://fr.vuejs.org/) and [Pinia](https://pinia.vuejs.org/) as a state manager.
Vue is used following the composition API approach.
2024-07-11 12:42:29 +02:00
# Development
## Development environment
### First setup :
2024-07-10 16:37:24 +02:00
- **From the `/public` directory**, install the Kirby dependencies : `composer install`
- **From the root directory**, install the Node dependencies : `npm install`
2024-07-10 17:24:41 +02:00
- Replace the `public/site/plugins/kql`plugins by its last version, downloaded from the [official GitHub repo](https://github.com/getkirby/kql/releases).
- Launch the servers (see below).
- Create the first user to the Kirby panel through http://localhost:8888/panel
- In the root directory, create an .env file containing your user's connexion informations :
```bash
VITE_USERNAME=mail@example.com
VITE_PASSWORD=your-private-password
```
2024-07-10 16:37:24 +02:00
2024-07-11 12:42:29 +02:00
### Servers
2024-07-10 16:37:24 +02:00
- **From the `/public` directory**, launch the PHP server : `php -S localhost:8888 kirby/router.php`
- In another terminal tab, **from the root directory**, launch the Vite server : `vite`