Skip to content

Nitestack/personal-site

Repository files navigation

🌐 Personal Site

Latest Commit GitHub Repo Stars Github Created At

FeaturesRequirementsGetting StartedConfigurationLicense

This repository contains the source code for my personal website, built to showcase my work and share my experiences. It's developed with a modern tech stack including Next.js and Tailwind CSS.

If you find this repository useful, please ⭐️ or fork it!

🚀 Features

This project is built with a focus on performance, clean code, and a great developer experience.

  • Framework: Built with Next.js, a powerful React framework.

  • Language: Written in TypeScript for type safety and improved code quality.

  • Styling: Styled with Tailwind CSS, a utility-first CSS framework for rapid UI development.

  • Content Management: Integrates with the Notion API to fetch blog posts and other content.

  • Linting & Formatting: Enforces a consistent code style with ESLint and Prettier.

  • Animations: Smooth and beautiful animations powered by Motion.

  • Internationalization: Supports multiple languages using next-intl.

⚙️ Requirements

To get this project up and running locally, you'll need:

  1. Node.js: Make sure you have a recent version of Node.js installed.

  2. pnpm: This project uses pnpm as its package manager. You can install it with npm install -g pnpm.

🏁 Getting Started

Follow these steps to set up the project on your local machine.

  1. Clone the repository:
git clone https://git.npham.de/Nitestack/personal-site.git
cd personal-site
  1. Install dependencies:
pnpm install
  1. Configure Environment Variables: Follow the steps in the Configuration section below.

  2. Run the development server:

pnpm dev

The site will be available at http://localhost:3000.

🛠️ Configuration

This project uses a combination of environment variables and a constants file for configuration.

1. Environment Variables (.env)

  1. Create a .env file: Copy the example file to create your local configuration.
cp .env.example .env
  1. Fill in your secrets: Open the .env file and add your credentials.
  • GITHUB_PERSONAL_ACCESS_TOKEN: A personal access token for the GitHub API, used to fetch repository information.

  • NOTION_SECRET: Your Notion API secret key.

  • NOTION_DATABASE_ID: The ID of the Notion database where your blog posts are stored.

2. Global Constants (src/constants.ts)

Non-sensitive, static data that is used throughout the application is stored in src/constants.ts. This includes things like the site URL, author information, and navigation links. You can modify this file to change the site's branding and core settings.

📝 License

This project is licensed under the Apache-2.0 license.

About

My website to represent my work and share my experience

Topics

Resources

License

Stars

Watchers

Forks