nuxt_ssg_boilerplate/README.md

42 lines
709 B
Markdown

# Nuxt Static Site Generation Boilerplate
Generate static site with content from [Directus CMS](https://directus.io/).
Use the [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 CDCN]() script.