GithubHelp home page GithubHelp logo

niaogege / nextjs-juejin-blog Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2 MB

learn and deploy nextjs project

Home Page: nextjs-niaogege.vercel.app

JavaScript 11.84% TypeScript 70.50% CSS 10.57% Dockerfile 7.09%

nextjs-juejin-blog's Introduction

待办计划

功能介绍

  • 完全自定义主题,页面静态化渲染,SSG
  • 如何利用 nodejs 把某一个目录下的文章转换成 Blog 目录下的页面?
  • 标签页和时间线以及关于自己页面
  • 评论功能,现在还不知道对接哪一个评论系统
  • 根据文档自动生成网站索引
  • 文章页面,md 格式代码高亮
  • 国际化(中英文)
  • 黑白主题切换
  • 输出 npm,开源

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Docker

// Dockerfile
FROM node:16
COPY . /nestjs
WORKDIR /nestjs
RUN npm install && npm run build
CMD npm run start
EXPOSE 3002
  • docker image build -t next-demo . 创建镜像
  • docker container run --rm -p 8000:3002 -it next-demo 创建容器 // -p 参数:容器的 3000 端口映射到本机的 8000 端口。 // -it 参数:容器的 Shell 映射到当前的 Shell,然后你在本机窗口输入的命令,就会传入容器。
  • docker login
  • docker image tag next-demo:0.0.1 niaogege/next-demo:0.0.1
  • docker image push niaogege/next-demo:0.0.1

// 本地拉下来之后 docker container run --rm -p 3002:3002 -it niaogege/next-demo:0.0.1

nextjs-juejin-blog's People

Contributors

niaogege avatar

Watchers

 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.