40 lines
630 B
Markdown
40 lines
630 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
|
|
```
|
|
|
|
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.
|