DylanAllen / dylanallen

New personal site

Home Page:https://dylanallen.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DylanAllen.net

This is my personal site, built with Next.JS, TypeScript, Firebase Authentication, FireStore DB, & Vercel.

Setup

Download and install

git clone https://github.com/DylanAllen/dylanallen.git
cd dylanallen
npm i

Setup a Firebase project and create a firebase.config.ts file (for authentication and comments)

firebase.config.ts

export const firebaseConfig = {
    apiKey: "...",
    authDomain: "...",
    databaseURL: "...",
    projectId: "...",
    storageBucket: "...",
    messagingSenderId: "...",
    appId: "...",
    measurementId: "..."
  };
 

Setup a Firebase Service account and create a .env.local with the following info (this is for server side comment posting and approval):

project_id=...
private_key=-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n
client_email=...
ga_id=YOUR_GOOLE_ANALYTICS_ID

Run locally:

npm run dev

Deploy

Deploy it to the cloud with Vercel (Documentation).

Install the Vercel CLI if you don't already have it:

npm i -g vercel

Dev deployment:

vercel

Prod deployment:

vercel --prod

About

New personal site

https://dylanallen.net/


Languages

Language:TypeScript 85.6%Language:SCSS 12.3%Language:CSS 2.1%