An open API service indexing awesome lists of open source software.

https://github.com/nelsonlaidev/one-blog

A full-stack blog made by tszhong0411
https://github.com/nelsonlaidev/one-blog

blog drizzle fullstack next-auth next-safe-action nextjs postgresql react zod

Last synced: 8 months ago
JSON representation

A full-stack blog made by tszhong0411

Awesome Lists containing this project

README

          



One Blog

A simple and full stack blogging platform built with Next.js.

## Features

- **Authentication**: Sign in with Google
- **Rich Text Editor**: Create and edit blog posts with a rich text editor
- **Dark Mode**: Toggle between light and dark mode
- **Like Button**: Like and unlike blog posts
- **Drafts**: Save blog posts as drafts
- **Visibility**: Make blog posts public or private

## Getting Started

Follow these steps to run the project locally on your machine:

1. Clone the repository.

```bash
git clone https://github.com/nelsonlaidev/one-blog.git
```

2. Navigate to the project directory.

```bash
cd one-blog
```

3. Install dependencies.

```bash
pnpm install
```

4. Configure environment variables.

Create a `.env.local` file based on the provided `.env.example` file and fill in the necessary variables.

5. Start docker compose.

```bash
docker compose up -d
```

6. Run the development server.

```bash
pnpm dev
```

---


Made with ❤️ in Hong Kong