Code Monkey home page Code Monkey logo

node-nest-vue-nuxt-cms's Introduction

GiiBee CMS

The CMS system developed by nest.js based on node.js and nuxt.js based on vue.js is used to implement SSR server-side rendering and generate static HTML, which is conducive to SEO.Suitable for enterprises to build SEO-type websites.

English | 简体中文

Getting started

MySql

  1. Create the nest_cms_api table;

  2. Use MySql command or management software to import the .sql file in the DB directory.

CMS API server

cd server

npm install

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

CMS management

cd admin

npm install --legacy-peer-deps

# serve with hot reload at localhost:3002
npm run dev

# build for production and launch server

npm run build:stage

npm run build:prod

CMS web

cd web

npm install

# development
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

Features

  • NestJS + MySql output API.
  • API calls sensitive operation records IP, administrator and client information.
  • NuxtJS + Vue + Bootstrap-vue can generate static HTML for the whole site (SEO).
  • Nuxtjs vue implements SSR server-side rendering (SEO).
  • Element UI + Vue realizes CMS management.
  • Front-end and back-end separation.
  • JWT authentication.
  • Commodity classification supports custom routing and web page description (SEO).
  • Product name supports custom routing and web page description (SEO).
  • Responsive web pages, adapted to PC and mobile terminals.

screenshot

CMS web

home

home

product

product

about
about

CMS management

banner

product

product

CMS API

API

License

Apache License 2.0.

node-nest-vue-nuxt-cms's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-nest-vue-nuxt-cms's Issues

nest后端代码疯狂

依赖安装老是失败, 只能用cnpm 但是又跑不起来 ,

提示少这少那的

image

npm run start:prod报错,我发现没有dist/main,中间要加src才能执行,但是执行报下面错误

$ node dist/src/main
[Nest] 32817 - 06/02/2023, 6:01:38 PM LOG [NestFactory] Starting Nest application...
[Nest] 32817 - 06/02/2023, 6:01:38 PM ERROR [ExceptionHandler] {(intermediate value)(intermediate value)(intermediate value)}[process.env.FM_SERVER_ENV] is not a function
TypeError: {(intermediate value)(intermediate value)(intermediate value)}[process.env.FM_SERVER_ENV] is not a function
at exports.default [as metatype] (/Users/lyseky/workspace/lyseky/igxstudio/server/dist/config/config.default.js:20:29)
at Injector.instantiateClass (/Users/lyseky/workspace/lyseky/igxstudio/server/node_modules/@nestjs/core/injector/injector.js:304:55)
at callback (/Users/lyseky/workspace/lyseky/igxstudio/server/node_modules/@nestjs/core/injector/injector.js:48:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Injector.resolveConstructorParams (/Users/lyseky/workspace/lyseky/igxstudio/server/node_modules/@nestjs/core/injector/injector.js:124:24)
at async Injector.loadInstance (/Users/lyseky/workspace/lyseky/igxstudio/server/node_modules/@nestjs/core/injector/injector.js:52:9)
at async Injector.loadProvider (/Users/lyseky/workspace/lyseky/igxstudio/server/node_modules/@nestjs/core/injector/injector.js:74:9)
at async Promise.all (index 4)
at async InstanceLoader.createInstancesOfProviders (/Users/lyseky/workspace/lyseky/igxstudio/server/node_modules/@nestjs/core/injector/instance-loader.js:44:9)
at async /Users/lyseky/workspace/lyseky/igxstudio/server/node_modules/@nestjs/core/injector/instance-loader.js:29:13
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Process finished with exit code 1

ERROR [TypeOrmModule] Unable to connect to the database

[Nest] 227 - 07/07/2022, 8:56:04 AM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (4)...
QueryFailedError: Duplicate entry '' for key 'PRIMARY'
at QueryFailedError.TypeORMError [as constructor] (/app/src/error/TypeORMError.ts:7:9)
at new QueryFailedError (/app/src/error/QueryFailedError.ts:9:9)
at Query.onResult (/app/src/driver/mysql/MysqlQueryRunner.ts:196:37)
at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/connection.js:456:32)
at PacketParser.onPacket (/app/node_modules/mysql2/lib/connection.js:85:12)
at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
at Socket. (/app/node_modules/mysql2/lib/connection.js:92:25)
at Socket.emit (events.js:315:20)
at addChunk (_stream_readable.js:309:12)
[Nest] 227 - 07/07/2022, 8:56:07 AM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (5)...
QueryFailedError: Duplicate entry '' for key 'PRIMARY'
at QueryFailedError.TypeORMError [as constructor] (/app/src/error/TypeORMError.ts:7:9)
at new QueryFailedError (/app/src/error/QueryFailedError.ts:9:9)
at Query.onResult (/app/src/driver/mysql/MysqlQueryRunner.ts:196:37)
at Query.execute (/app/node_modules/mysql2/lib/commands/command.js:36:14)
at PoolConnection.handlePacket (/app/node_modules/mysql2/lib/connection.js:456:32)
at PacketParser.onPacket (/app/node_modules/mysql2/lib/connection.js:85:12)
at PacketParser.executeStart (/app/node_modules/mysql2/lib/packet_parser.js:75:16)
at Socket. (/app/node_modules/mysql2/lib/connection.js:92:25)
at Socket.emit (events.js:315:20)
at addChunk (_stream_readable.js:309:12)

配置的地址和实践连接的mysql地址不同

配置的地址:"type":"mysql","host":"sh-cynosdbmysql-grp-jgarzx84.sql.tencentcdb.com","port":21954
启动后连接的地址: ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: Access denied for user 'root'@'27.17.226.205' (using password: YES)
不知道是不是服务的问题,用的腾讯云的数据库
ping sh-cynosdbmysql-grp-jgarzx84.sql.tencentcdb.com 的ip是 124.222.251.11

english?

Looks like there is supposed to be english support in the documentation. It doesn't exist, also, does this have english?

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.