Giter VIP home page Giter VIP logo

nuxt-3-portfolio's Introduction

Nuxt 3 Minimal Portfolio using Pinia & Contentful

An open-source portfolio template built using Nuxt 3, Pinia and Contentful.

One-click deploy:

Deploy with Vercel

Demo: https://rajkshrestha1.com.np

Features

  • ๐Ÿฅฐ Minimal and light
  • ๐ŸŒ— Light/dark/system color modes
  • ๐Ÿ“ฑ Responsive
  • ๐Ÿ“ˆ Google Analytics
  • โšก Auto-generated sitemap (visit /sitemap.xml)
  • ๐Ÿš€ one click deployment to Vercel

Prerequisites

  1. Create a Contentful account.

  2. Once your account is created, Contentful should have a space pre-installed/created. If not, create a space from the sidebar. Create space

  3. Click on "Create model" at the top bar and create a new content type titled "Projects". Create model

  4. Add fields to the content model with the following fields and types and save the model. Add fields

  5. Now, go to the Content tab and start adding content to the content model you just created.

  6. Once everything's set up, create an access token to let your app communicate with Contentful. You can then copy your space id and access token and paste them in your .env Tokens

Tokens

  1. Get your Google Analytics ID (optional)
  2. Now, you can click the deploy button to deploy the site to Vercel. Since Nuxt 3 has updated the deployment a little bit, you might want to set the output directory as follows (see #9) and rebuild.

Deploy with Vercel

  1. If you want to manually deploy the site to Vercel, just make sure to include your environmental variables and modify the build and development commands as follows. Build Settings

Build Setup

create a .env file with the following variables

BASE_URL=(YOUR_SITE_URL w/o trailing slash)
CTF_SPACE_ID=(contentful space id)
DOMAIN=(YOUR_SITE_URL w/o trailing slash)
CTF_ACCESS_TOKEN=(contentful delivery access token)
GOOGLE_ANALYTICS_ID=

Make sure to install the dependencies:

# yarn
yarn install

# npm
npm install

# pnpm
pnpm install --shamefully-hoist

nuxt-3-portfolio's People

Contributors

srestraj avatar

Stargazers

BAIMAM BOUKAR JEAN JACQUES avatar Teetouch avatar David Silva avatar  avatar MaxStouten avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.