Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

bookshelves-project/bookshelves-front

Repository files navigation

Bookshelves · Front

nuxt nuxt-ssr tailwindcss

node pnpm

https://img.shields.io/badge/dynamic/json?url=https://gitlab.com/bookshelves-project/bookshelves-front/-/raw/main/package.json&label=Nuxt.js&query=$.devDependencies.nuxt&color=00C58E&prefix=v&style=flat-square&logo=nuxt.js&logoColor=ffffff https://img.shields.io/badge/dynamic/json?url=https://gitlab.com/bookshelves-project/bookshelves-front/-/raw/main/package.json&label=Tailwind%20CSS&query=$.devDependencies.tailwindcss&color=38B2AC&prefix=v&style=flat-square&logo=tailwind-css&logoColor=ffffff https://img.shields.io/badge/dynamic/json?url=https://gitlab.com/bookshelves-project/bookshelves-front/-/raw/main/package.json&label=Node.js&query=$.engines.node&color=339933&prefix=v&style=flat-square&logo=node.js&logoColor=ffffff https://img.shields.io/badge/dynamic/json?url=https://gitlab.com/bookshelves-project/bookshelves-front/-/raw/main/package.json&label=pnpm&query=$.engines.pnpm&color=F69220&prefix=v&style=flat-square&logo=pnpm&logoColor=ffffff

https://jsonpath.com

Works with documentation.

Commands

To upgrade

https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.13

npx nuxi-edge@latest upgrade --force // Automated

Manual: Bump nuxt dependency to 3.0.0-rc.13 and then use npx nuxi-edge@latest cleanup to cleanup any local caches

OR

Bump nuxt dependency to npm:nuxt3@latest and then use npx nuxi-edge@latest cleanup to cleanup any local caches

Setup

Setup local on http://localhost:3000 with https://bookshelves.ink API

Create .env

cp .env.example .env

Node.js dependencies

pnpm i

Local serve

pnpm dev

Update API

Update .env on API_URL to use local API

API_URL=http://localhost:8000

Production in SSR

Update .env

BASE_URL=https://bookshelves.ink
API_URL=https://bookshelves.ink

Setup build

pnpm build

Launch server in SSR

pnpm start

For detailed explanation on how things work, check out Nuxt.js docs.