Coder Social home page Coder Social logo

nextbs5's Introduction

Next.js 工程模版

项目做成

$ npx create-next-app@latest nextbs5
$ cd nextbs5
# React + Bootstrap 5
$ npm install react-bootstrap [email protected]
# Next.js 中间件
$ npm install next-connect
# 字符串校验模块
$ npm install validator
# 口令加密模块
$ npm install bcrypt
# NextAuth 认证模块
$ npm install next-auth
# Redux 状态管理(真的不好用, 等待 Recoil)
# $ npm install redux redux-thunk redux-devtools-extension react-redux next-redux-wrapper

从 Github 取得运行

$ git clone https://github.com/komavideo/nextbs5
$ cd nextbs5
# 删除Git信息, 单独使用场合
# $ rm -fr .git
$ npm install
$ npm run dev

Github

本地加入 Github

git remote add origin https://github.com/komavideo/nextbs5.git
git branch -M main
git push -u origin main

Restful API 测试用具

https://reqbin.com/

Docker

# 安装依赖包
npm install
# 打包编译
npm run build
# 编译 Docker 镜像
docker build -t komavideo/microservices-nextbs5:v1 .
docker image ls
# 删除 Docker 镜像
docker image rm komavideo/microservices-nextbs5:v1
# 进入容器确认
docker run -it --rm komavideo/microservices-nextbs5:v1 sh
# 本地执行
docker run --rm --name microservices-nextbs5 -p 3000:3000 komavideo/microservices-nextbs5:v1
# 推送 DockerHub
docker push komavideo/microservices-nextbs5:v1

nextbs5's People

Contributors

komavideo avatar

Watchers

James Cloos avatar  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.