Jamstack Docker + Nuxt + Contentful + Vuetify + Netfliy로 포트폴리오 작성 ①
하고 싶은 일
전제
· Nuxt 환경
참고: htps : // bg. c ぉ うー ct. 코 m/포 sts/bぉg-없는 xtjs-세칭 gs/
· Docker 환경
참고: htps : // 코 m / 쿠 쿠 루 / ms / 127 99 에 f5b2f0288b81
그럼 가보자!
Nuxt로 리셉션 만들기
npx create-nuxt-app my_portfolio
✨ Generating Nuxt.js project in my_portfolio
? Project name my_portfolio
? Project description My kryptonian Nuxt.js project
? Author name Naoya Moriguchi
? Choose programming language TypeScript
? Choose the package manager Npm
? Choose UI framework Vuetify.js
? Choose custom server framework None (Recommended)
? Choose the runtime for TypeScript @nuxt/typescript-runtime
? Choose Nuxt.js modules Axios, Progressive Web App (PWA) Support, DotEnv
? Choose linting tools ESLint
? Choose test framework None
? Choose rendering mode Universal (SSR)
? Choose development tools (Press <space> to select, <a> to toggle all, <i> to invert selection)
Docker로 환경 구축
# Dockerfile
FROM node:12
ENV HOST 0.0.0.0
COPY . /app
WORKDIR /app
이번에는 node12로 설정
# docker-compose.yml
version: '3'
services:
nuxt:
build:
context: ./
container_name: node12_portfolio
volumes:
- ./:/app
ports:
- "3000:3000"
command: bash -c "npm install && npm run dev"
네. 이제
docker-compose up
이제 환경 완성! !
http://localhost:3000/
Contentful에서 포트폴리오 정보 얻기
npx create-nuxt-app my_portfolio
✨ Generating Nuxt.js project in my_portfolio
? Project name my_portfolio
? Project description My kryptonian Nuxt.js project
? Author name Naoya Moriguchi
? Choose programming language TypeScript
? Choose the package manager Npm
? Choose UI framework Vuetify.js
? Choose custom server framework None (Recommended)
? Choose the runtime for TypeScript @nuxt/typescript-runtime
? Choose Nuxt.js modules Axios, Progressive Web App (PWA) Support, DotEnv
? Choose linting tools ESLint
? Choose test framework None
? Choose rendering mode Universal (SSR)
? Choose development tools (Press <space> to select, <a> to toggle all, <i> to invert selection)
# Dockerfile
FROM node:12
ENV HOST 0.0.0.0
COPY . /app
WORKDIR /app
# docker-compose.yml
version: '3'
services:
nuxt:
build:
context: ./
container_name: node12_portfolio
volumes:
- ./:/app
ports:
- "3000:3000"
command: bash -c "npm install && npm run dev"
docker-compose up
다음 번에는,,,
Reference
이 문제에 관하여(Jamstack Docker + Nuxt + Contentful + Vuetify + Netfliy로 포트폴리오 작성 ①), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/knitbow/items/89478226da7bd365b9cd텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)