Skip to content

Jasonhonghh/go-chat-web

Repository files navigation

go-chat-web

基于 Next.js 的go-chat聊天室前端项目。

快速开始

  1. 安装依赖:
npm install
  1. 启动开发环境
npm run dev
  1. 访问应用

打开浏览器,访问 http://localhost:3000

功能简介

  • 用户注册与登录
  • 聊天页面
  • 路由鉴权(未登录自动跳转登录页)
  • 支持 API Mock 测试

配置

环境变量写在.enc.local文件中,示例:

NEXT_PUBLIC_API_BASE_URL=http://chat.dev-insight.cloud:8080
NEXT_PUBLIC_ENABLE_API_MOCK=1

About

A lightweight chatroom frontend built with Next.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published