portfolio-valentin-le-moign/README.md

42 lines
844 B
Markdown

# Nuxt Static Site Generation Boilerplate
Generate static site with content from [Directus CMS](https://directus.io/).
Use the [Directus MariaDB boilerplate](https://gitea.valentin-le-moign.fr/val/directus_mariadb_boilerplate) to launch the CMS locally.
The files are retrieved and cached from Directus on build time.
## Develop
Install the dependencies :
```bash
npm install
```
Create the `.env` file from `.env.example`
Work with
```bash
npm run dev
```
Create and populate the `pages`, `public`, `components` and `assets` folders.
Build the site in `.output/public` directory
```bash
npm run generate --prerender
```
Preview the freshly built site with
```bash
npx serve .output/public
```
## Deploy
Deploy on a Debian VPS with the [Deploy DCDN Static](https://gitea.valentin-le-moign.fr/val/deployment_dcdn_static) script.