README.md 1,08 ko
Newer Older
Mickael Louvel's avatar
Mickael Louvel a validé
# Progressive Web App

Contains a [Next.js](https://nextjs.org/) project bootstrapped with [pnpm](https://pnpm.io/) and [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

The `admin` page contains an API Platform Admin project (refer to its [documentation](https://api-platform.com/docs/admin)).

You can also generate your web app here by using the API Platform Client Generator (refer to its [documentation](https://api-platform.com/docs/client-generator/nextjs/)).
Mickael Louvel's avatar
Mickael Louvel a validé
# Manage project

## Launch
|Command description|On Linux|On Windows|
|--|--|--|
|Build project|sudo docker compose build --pull --no-cache|sudo docker compose build --pull --no-cache|
Mickael Louvel's avatar
Mickael Louvel a validé
|Run project|docker compose up -d|docker compose up -d|
|Stop apache2 if it's running (may occupy needed port)|sudo service apache2 stop|Kill apache2 task in Task Manager|
|View server logs (useful to understand API behavior)|docker compose logs -f|docker compose logs -f|
Mickael Louvel's avatar
Mickael Louvel a validé

## Access to web page
Kévin Leroux's avatar
Kévin Leroux a validé
https://localhost/
Mickael Louvel's avatar
Mickael Louvel a validé

## Access to "docs" page for managing entities from API Platform
https://localhost/docs