Skip to content

Latest commit

 

History

History
173 lines (113 loc) · 4.24 KB

README_zh-EN.md

File metadata and controls

173 lines (113 loc) · 4.24 KB

English | 简体中文

Foreword

A background system built on node.js + mongodb provides interface services for [nuxt-elm] (https://github.com/EasyTuan/nuxt-elm).

In case of poor network, please move to [Domestic Mirror Acceleration Node] (https://gitee.com/easytuan/node-elm-api)

Show results

[Front URL please poke here] (https://elm.caibowen.net/) (please preview with chrome phone mode)

Mobile scanning the QR code below

API interface documentation

Interface document address(Based on apidoc)

Technology stack

nodejs + express + mongodb + mongoose + pm2

Project operation


git clone git@github.com:EasyTuan/node-elm-api.git

cd nuxt-elm

npm install

npm run dev

1.2 development process

1.2.1 command

# Development
npm run dev

# Start mongodb(Make sure mongodb is installed)
npm run mongod

# Open the browser GUI interface to view mongodb (default port 1234)
npm run mongo

# Generate an api document (based on apidoc)
npm run doc

# Production deployment (pm2 process daemon)
npm run start

Target function

  • Merchant list -- finished
  • Shopping cart -- finished
  • Restaurant food list -- finished
  • Store evaluation -- finished
  • Business details -- finished
  • log in Register -- finished
  • change Password -- finished
  • Personal center -- finished
  • Red envelope -- finished
  • Shipping address -- finished

Directory Structure

├── config
│   ├── default.js
│   └── development.js
├── controller
│   ├── common
│   │   ├── homeData.js
│   │   └── position.js
│   ├── shopping
│   │   ├── business.js
│   │   └── restaurants.js
│   └── user
│       ├── address.js
│       └── user.js
├── doc
├── InitData
│   ├── business.js
│   ├── home.js
│   └── restaurants.js
├── models
│   ├── common
│   │   └── common.js
│   ├── shopping
│   │   ├── business.js
│   │   └── restaurants.js
│   └── user
│       ├── address.js
│       └── user.js
├── mongodb
│   └── db.js
├── public
├── routes
│   ├── common.js
│   ├── index.js
│   ├── shopping.js
│   └── user.js
├── screenshots
├── .babelrc 
├── .gitignore
├── app.js
├── COPYING
├── index.js
├── package.json
└── README.md                  

Partial screenshot display

Home show

personal information

mine

Ordering

Merchant evaluation

Description

If it helps, you can click on the "Star" support in the upper right corner. Thank you! ^_^

Or you can "follow" it, I will continue to open up more interesting projects.

Development environment macOS 10.13.4 nodejs 8.11.3 Mongodb 4.0.1

Deployment environment AWS CentOS 6.8 64位

If you have any questions, please do so directly in the Issues, or you find the problem and have a very good solution, welcome PR 👍

Sponsorship

If you are helpful, welcome sponsorship

After receiving the sponsorship, I will promptly update the sponsorship wall

Links

Project background address

License

GPL