GithubHelp home page GithubHelp logo

ma-db's Introduction

Ma-db  

My-Achievements项目的后端代码,不是最终包,最终的包在Gitlab上。

  1. npm install
  2. run 'node bin/automigrate.js' to migrate data to mongodb
  3. run 'node .' to start loopback
  4. go to the '/Explorer' to checkout the usage of api
  5. in MA , just change the path in the $resource (index.api.js) to the loopback api, then you can use CRUD operation on the data

Note

请注意,ma中的user对应loopback这里的customer.loopback中的user model是其内置的model,限制了部分api的访问。

如果有此报错

Connection fails:  { MongoError: failed to connect to server [127.0.0.1:27017] on first connect

请先开启mongodb

如果有此报错

Error: listen EADDRINUSE 0.0.0.0:3000

请先运行此demo,再运行ma,或者在/server/config.json下修改端口号,否则会出现端口占用报错。。因为大家都在用3000端口

ma-db's People

Watchers

 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.