Nodejs full stack frame Strongloop recommended _node.js

Source: Internet
Author: User
Tags generator vps

Strongloop is a powerful framework based on Nodejs that contains almost all the features needed to move the entire stack. Founded in 2013, few employees, a technology-driven, executive power team. Also in 13 I began to contact Strongloop, was to do nodejs aspects of the technical selection, saw a lot of frames, loopback is I think the coolest one. I remember thinking that Loopback's documents were too bad (mostly unlike online versions) and didn't know how long it would take to give it up. After a year came back to see the green frame, this year is really by leaps and bounds.

Full stack frame Strongloop

Strongloop basically provides all the frameworks and tools for making a mobile product, from standard backend server,devops, to application monitoring. To introduce the complete strongloop of all the products have to write a long serial, here only a simple browsing.

Loopback

A powerful webserver frame that vaguely sees spring's shadow ...

Sdk

This is what I think strongloop best use the point: according to the backend model automatically generate the corresponding front-end SDK. RESTful API
MEAN Stack drives all the new framework default support restful APIs, such as Node-restify,sailjs in Nodejs, are inherently for the serve API. Strongloop also provides a tool for designing APIs (Beta status), which, of course, is much worse than Raml. Data model
It is easy to create a data model that automatically generates the corresponding restful API. Connectors
Of course you can butt all kinds of databases. Strongloop Controller
Debug, Package Management, Build, Deploy, Cluster, log, and so on, a bunch of devops tools. Application Monitor
A stack of monitoring server modules. Mbaas
Using Strongloop, you can also create your own leancloud, including push, location calculations (geopoint), Social login,user Management, various Replication,offline Sync (offline Sync is a good thing), docking a variety of stroage cloud (Aws,rackspace and so on). Of course, these are the functions provided in the loopback, meaning to use strongloop to have eternal life. Begin

Install Strongloopsudo npm install -g strongloop
Create an application slc loopback (find a blank directory OH) It will only ask you what the project is called.
Create a model slc loopback:model (not thinking of Yo generator~), and then it will ask a bunch of messy questions.

Plural refers to the RESTful API Route name, a model corresponding to the route by default will be plural (plural), such as the post path is posts.

Guess, like in Leancloud, it's time to go to a place like 127.0.0.1:3000/xxx and see his backstage. Well Xxx=explorer Http://127.0.0.1:3000/explorer You can see an API dashboard with swagger.

Take a look at the structure of the project, like Meteor, loopback the JS code into a server, front-end (client), and shared part (common, which the individual thinks is clearer than the meteor split).

Skip behind API Explorer, how to connect to the database, and see how to use the API just created on the front end. Loopback's approach is to help you create the SDK for your current API, which currently supports only android/ios/angularjs. If you use another web framework, you may have to be self-reliant.

Create your own SDK lb-ng server/server.js client/lb-services.js look client/lb-services.js, that's good.

Well, your front-end engineer needs a document? Execution lb-ng-doc client/lb-services.js sometimes requires adding sudo to the front (not knowing why), and then accessing http://localhost:3030/to see the document ~ This feature is based on Docular. In addition, if you order loopback services to go into nothing, don't worry, refresh.

See if it looks like the early angular document ~

API Designer

Believe that many programmers like Parsejs or leancloud the reason is that the graphical interface of the model design (or API design) backstage. If the previous "Yo Generator" API creator doesn't look intimate enough, you can try Strongloop's new Strongloop Studio beta.

Under the engineering root directory

sudo npm install -g http://get-studio.strongloop.com/strong-studio.tgzInstall Studio. Start Studio strong-studio , automatically open the browser to Strongloop official website to register an account in the upper right corner (the document actually wrote On the bottom right is a link to go to the registration page on strongloop.com , you do not know the page is very easy to revision mody ... Log in with the registered username to see API composer and profiler. Bingo! all kinds of play!

P.S. If you have a problem like SyntaxError: Cannot parse package.json: Unexpected token e this at this time, check if the Package.json under your engineering root is JSLint messed up (I dont ' t know why ... )
Okay, well, I'm telling you, this beta is really special beta ... Try not to use ... in a project where you have written code before.

Lazy people

If you need a mongodb:mongolab to play with
If you want a ide:koding that can be developed collaboratively,
If you want a cheap and easy vps:digital Ocean
If you think their home isn't cheap: serverbear
If you don't want to even have a VPS, just want to deploy a node project: Nodejitsu
If you want to design an API as soon as possible to the client, and do not want to take node, find a place to deploy: apiary
If you want to do a app, you don't want to hire a bunch of people: Appdupe

End of 30 days

This is the last piece of 30hackdays, finally boil out (Xu ...) )。 Anyway, these 30 days I learned a lot, how to find the service you want, how to quickly realize the prototype, how to compare the product of the developer's competition ...

Looking back, the content of the article certainly did not shekhar that article learning Technologies in Days:a Developer Challenge wrote the detailed (does not have to devote so much time energy), But my choice of technology is broader (or more messy), and it's a process of broadening my horizons.

I hope this series can give you some inspiration. Technology is not all so esoteric, embrace it may not immediately raise wages, but at least in the cold days, no wifi, lonely lonely cold, you can also open the browser console, enter a while, to warm hands.

Below

Well, it's not what you think, and it's not for eating. I will then continue to write some of the interesting developer services that have been discovered from time to time, and I will write a Strongloop series of articles to introduce more features of the framework and hope that we can try this rapidly evolving product.

Make a little ad: a small class (free), which teaches high school students ' skills until they reach the level of hackathon they can take. If there are high school students interested in technology, please contact me ~ fxp007@gmail.com

OK, those who lost the love to come about ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.