jiayisheji / Nest Cnode
Licence: mit
CNode 社区 Nest 版本 https://cnodejs.org/
Stars: ✭ 125
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Nest Cnode
Jianshu
仿简书nx+nodejs+nestjs6+express+mongodb+angular8+爬虫
Stars: ✭ 296 (+136.8%)
Mutual labels: mongoose, redis, mongodb, nestjs
Blog Service
blog service @nestjs
Stars: ✭ 188 (+50.4%)
Mutual labels: mongoose, redis, mongodb, nestjs
Lad
👦 Lad is the best Node.js framework. Made by a former Express TC and Koa team member.
Stars: ✭ 2,112 (+1589.6%)
Mutual labels: mongoose, redis, mongodb
Express Graphql Mongodb Boilerplate
A boilerplate for Node.js apps / GraphQL-API / Authentication from scratch - express, graphql - (graphql compose), mongodb (mongoose).
Stars: ✭ 288 (+130.4%)
Mutual labels: mongoose, redis, mongodb
Nest User Auth
A starter build for a back end which implements managing users with MongoDB, Mongoose, NestJS, Passport-JWT, and GraphQL.
Stars: ✭ 145 (+16%)
Mutual labels: mongoose, mongodb, nestjs
Mongoose
Mongoose module for Nest framework (node.js) 🍸
Stars: ✭ 191 (+52.8%)
Mutual labels: mongoose, mongodb, nestjs
Node Express Mongodb Jwt Rest Api Skeleton
This is a basic API REST skeleton written on JavaScript using async/await. Great for building a starter web API for your front-end (Android, iOS, Vue, react, angular, or anything that can consume an API). Demo of frontend in VueJS here: https://github.com/davellanedam/vue-skeleton-mvp
Stars: ✭ 603 (+382.4%)
Mutual labels: mongoose, redis, mongodb
Nest Angular
NestJS, Angular 6, Server Side Rendering (Angular Universal), GraphQL, JWT (JSON Web Tokens) and Facebook/Twitter/Google Authentication, Mongoose, MongoDB, Webpack, TypeScript
Stars: ✭ 307 (+145.6%)
Mutual labels: mongoose, mongodb, nestjs
Vue Element Responsive Demo
基于 Vue + Element 的响应式后台模板
Stars: ✭ 54 (-56.8%)
Mutual labels: mongoose, redis, mongodb
Nodepress
😎 RESTful API service for Blog/CMS, powered by @nestjs
Stars: ✭ 829 (+563.2%)
Mutual labels: mongoose, mongodb, nestjs
Vue Family Bucket Ssr Koa2 Full Stack Development From Meituan
🚀🚀2020最新Vue全家桶+SSR+Koa2全栈开发☁
Stars: ✭ 100 (-20%)
Mutual labels: mongoose, redis, mongodb
Daudit
🌲 Configuration flaws detector for Hadoop, MongoDB, MySQL, and more!
Stars: ✭ 108 (-13.6%)
Mutual labels: redis, mongodb
Mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Stars: ✭ 54,797 (+43737.6%)
Mutual labels: redis, mongodb
Ymate Platform V2
YMP是一个非常简单、易用的轻量级Java应用开发框架,涵盖AOP、IoC、WebMVC、ORM、Validation、Plugin、Serv、Cache等特性,让开发工作像搭积木一样轻松!
Stars: ✭ 106 (-15.2%)
Mutual labels: redis, mongodb
User.api
集成网关、身份认证、Token授权、微服务、.netcore等的基于CQRS的微服务开发框架示例
Stars: ✭ 109 (-12.8%)
Mutual labels: redis, mongodb
Angular Cms
An flexiable, extendable, modular, single CMS app based on Angular, Express, MongoDB
Stars: ✭ 109 (-12.8%)
Mutual labels: mongoose, mongodb
nest-cnode
Description
This is using the Nestjs imitation Cnode.
Installation
Currently runs with:
- nodejs v8.11.1
- mongodb v3.4.1
- redis v3.2.1
- nestjs v6.11.11
With this sample, you can :
- Understand basic use of Nestjs, and store data with mongodb and redis
- Use Nestjs with passport for authentication and third-party login Github
Getting Started
Environment Dependencies:
Clone this repository locally :
git clone https://github.com/jiayisheji/nest-cnode.git
Install dependencies with npm :
npm install
.env
file
Set up You also need to set the env config.
For that, if you just create a file named .env in the directory and set the values like the following, the app will just work:
.env file
#
# config
#
HOST='localhost'
PORT=3000
STATIC_HOST=''
MINI_ASSETS=false
#
# system
#
SUPER_ADMIN='super_admin'
SESSION_SECRET='cnode'
AUTH_COOKIE_NAME='nest_cnode'
GITHUB_CLIENT_ID=myCoolClientId
GITHUB_CLIENT_SECRET=myCoolSecret
#
# access qn
#
QN_ACCESS_KEY='your access key'
QN_SECRET_KEY='your secret key'
QN_BUCKET='your bucket name'
# 如果vps在国外,请使用 http://up.qiniug.com/ ,这是七牛的国际节点
# 如果在国内,此项请留空
QN_UPLOAD_URL=''
#
# Multer upload dest
#
# 开发上传的src 生成上传dist
UPLOAD_LOCATION='src'
#
# mail
#
MAIL_HOST='smtp.126.com'
MAIL_PORT=25
MAIL_USER='[email protected]'
MAIL_PASS='club'
#
# database redis
#
# Redis Replica Set
REDIS_HOST='127.0.0.1'
REDIS_PORT=6379
REDIS_PASSWORD=''
REDIS_DB=0
#
# database mongoDB
#
# MongoDB Replica Set
MONGO_HOST="localhost"
MONGO_PORT=27017
MONGO_USER="cnode_admin"
MONGO_PASS="123456"
MONGO_DBS="db_cnode"
Running the app
# development
$ npm run start
# watch development mode
$ npm run start:dev
# production mode
npm run prestart:prod && npm run start:prod
Test
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Dependencies
Dependencies are managed through package.json. In that file you'll find two sections:
dependencies
Package | Description |
---|---|
bcryptjs | Library for hashing and salting user passwords |
dotenv | Loads environment variables from .env file |
ejs-mate | Ejs template engine for Express |
ioredis | Redis ODM |
mongoose | MongoDB ODM |
nodemailer | Node.js library for sending emails |
passport | Simple and elegant authentication library for node.js |
passport-local | Sign-in with Username and Password plugin |
passport-github | Sign-in with Github plugin |
typescript | JavaScript compiler/type checker that boosts JavaScript productivity |
devDependencies
Package | Description |
---|---|
@types | Dependencies in this folder are .d.ts files used to provide types |
cross-env | Cross platform setting of environment scripts |
jest | Testing library for JavaScript |
nodemon | Utility that automatically restarts node process when it crashes |
supertest | HTTP assertion library |
ts-jest | A preprocessor with sourcemap support to help use TypeScript wit Jest |
ts-node | Enables directly running TS files. Used to run copy-static-assets.ts |
tslint | Linter (similar to ESLint) for TypeScript files |
Reference
- Awesome Nest
- NestJS Samples
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].