GithubHelp home page GithubHelp logo

aicodehunt / runningdev Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tonyljx/runningdev

0.0 0.0 0.0 3.16 MB

Modern nextjs template

Home Page: https://next.runningpig.top/en

JavaScript 0.43% TypeScript 86.62% CSS 12.95%

runningdev's Introduction

RunningDev

🌏 现代化的NextJs网页开发模板 🌏

English

Next.js react.js ts Tailwind CSS next-auth

RunningDev

特点

  • 🌟基于最流行的技术栈:
    • shadcn: 是去年star增长数最多的技术栈, 因为其友好的样式以及基于 tailwindcss 的样式二次开发
    • Nextauth: 方便集成第三方登录、密码登录等常见登录功能
  • 🌐i18n支持: 基于next-intl, 友好的支持国际化, 服务端/客户端均给出示例, 可以方便的进行多流量设置
  • 🚀oauth支持: 基于Nextauth 的登录模板, 目前实现了基于 google 和 github 的oauth 登录,详细配置见 这里

Changelog

2024年01月31日

  • 新增Changelog页面--搭配时间线自定义组件

RoadMap

  • 集成Lemon Squeezy
  • NextAuth
    • 登录
    • 注册

本地部署

克隆该项目后, 参考.env.example创建.env文件, 并参考下面的配置文档 配置开发环境的环境变量

npm i
npm run dev

Important

开发环境和线上环境的配置是不一样的,需要注意

部署

可以方便的一键部署到 vercel 看效果 Deploy with Vercel

配置

颜色配置

因为UI采取shadcn, 所以颜色配色方案可以参考 shadcn

环境变量

GITHUB: 配置oauth登录

  1. 打开 github oauth apps 页面
  2. 点击 new Oauth App, 创建应用
    1. Application name: 写和本次应用相关的name, 无强制要求
    2. Homepage url:开发的时候写本次URL, 部署到线上需要写线上域名
    3. Authorization callback url: 开发的时候写本地回调url http://localhost:3000/api/auth/callback/github,部署线上应用需要写线上版本的url: https://hostname/api/auth/callback/github

GOOGLE:配置oauth登录

和github基本同理,注意有几点不同

👀关于我

✨学习文档

Star History

Star History Chart

runningdev's People

Contributors

tonyljx 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.