Recommended Nodejs full stack framework StrongLoop, nodejsstrongloop

Source: Internet
Author: User
Tags vps

Recommended Nodejs full stack framework StrongLoop, nodejsstrongloop

StrongLoop is a powerful Nodejs-based framework that includes almost all the features required by the full stack of mobile development. Founded in 2013, it has very few employees, a technical-driven, and powerful executive team. I also started to contact StrongLoop in 13 years. At that time, I tried to select nodejs technologies and read many frameworks. LoopBack is the coolest one I think. I still remember that I thought the LoopBack documentation was too bad (mainly different from the online version) and I didn't know how long it would take to survive. A year later, I came back to see the green framework. This year was a great year.

Full-stack framework StrongLoop

StrongLoop basically provides all the frameworks and tools for creating a mobile product, from standard Backend server, Devops, application monitoring ,. If you want to introduce all StrongLoop products, you have to write a long serialization. Here, you can simply browse it again.

LoopBack

A powerful WebServer framework that vaguely shows the shadow of Spring...

SDK

At that time, I thought StrongLoop was the best option: automatically generate the corresponding front-end SDK Based on the backend Model. RESTful API
MEAN stack pushes all new frameworks to support RESTful APIS by default. For example, Node-restify and Sailjs in Nodejs are designed to serve APIs. StrongLoop also provides a tool for designing APIs (beta State). Of course, it is much worse than RAML. Data model
It is easy to create a data model and automatically generate the corresponding RESTful API. Connectors
Of course, you can connect to various databases. StrongLoop Controller
A bunch of Devops tools, such as Debug, Package Management, Build, Deploy, Cluster, and Log. Application Monitor
A bunch of monitoring server modules. MBaaS
With StrongLoop, you can also create your own LeanCloud, including Push, Geopoint, Social Login, User management, various Replication, offline sync (Offline synchronization is a good thing), connected to a variety of Stroage clouds (AWS, Rackspace and other built-in ). Of course, these are all functions provided by LoopBack, which means that StrongLoop is used for eternal life. Start

Install StrongLoopsudo npm install -g strongloop
Create an applicationslc loopback(Find a blank directory.) It will only ask you what the project is.
Create a Modelslc loopback:model(Do you think of Yo generator ~), Then it will ask a bunch of messy questions.

Plural refers to the route name of the RESTful API. By default, the route corresponding to a Model will be plural (plural). For example, the Post path is Posts.

Guess, like in LeanCloud, you should visit a place like 127.0.0.1: 3000/xxx to see his background ~ Well, xxx = explorer http: // 127.0.0.1: 3000/explorer can see an API dashboard made with Swagger.

Take a look at the project structure. Like Meteor, LoopBack divides JS Code into server, client, and common, in my opinion, this pure schema method is clearer than Meteor ).

After skipping the following API Explorer, how to connect to the Database directly depends on how to use the created API on the front-end. LoopBack helps you create various sdks of your current API. Currently, only Android/iOS/Angularjs is supported. If you use other Web frameworks, you may have to be self-reliant.

Create your own SDKlb-ng server/server.js client/lb-services.jsLook at the client/lb-services.js, good ~

Well, does your front-end engineer need a document? Runlb-ng-doc client/lb-services.jsSometimes you need to add sudo (I don't know why) in the front, and then access http: // localhost: 3030/to see the document ~ This function is based on Docular. In addition, if you click LoopBack Services to get in, don't worry. refresh it.

See if it looks like an Angular document ~

API Designer

I believe that many programmers like Parsejs or LeanCloud because of the graphic interface Model design (or API design) backend. If the previously used "Yo generator" API creator does not look very considerate, try StrongLoop Studio beta.

Under the project root directory

sudo npm install -g http://get-studio.strongloop.com/strong-studio.tgzInstall Studio. Start Studiostrong-studioAutomatically open the browser to register an account in the upper-right corner of the StrongLoop official website.On the bottom right is a link to go to the registration page on strongloop.comYou don't know if the page is easy to modify...) log in with the registered user name to see the API Composer and Profiler. Bingo! All kinds of play!

P.s. If you encounter a similarSyntaxError: Cannot parse package.json: Unexpected token eCheck whether the package. json file under the root of your project is messed up by jslint (I dont't know why ...)
Okay, I'll tell you that this beta is really a special beta... try not to use it in projects that have previously written code...

Lazy

If you do not have a suitable Mongodb: Mongolab
If you want an IDE that can be developed collaboratively: Koding
If you want a cheap and easy-to-use VPS: Digital Ocean
If you think their family is not cheap enough: Serverbear
If you do not want to connect to VPS, you only need to deploy a Node project: Nodejitsu.
If you want to design an API for the client as soon as possible, and do not want to build a Node, find a place to deploy: Apiary
If you want to create (copy) an APP and don't want to hire a bunch of people: Appdupe

End of 30 days

This is the last 30 hackdays article. I finally got it (panic ...). Anyway, I learned a lot over the past thirty days, how to find the desired service, how to quickly implement the prototype, and how to compare competing products of developer products...

Looking back, the article certainly does not have the Learning 30 Technologies written by Shekhar in 30 Days: A Developer Challenge (and no one has invested so much time and energy ), however, I chose a wider range of technologies (or more messy ones), which is also a process of expanding my horizons.

I hope this series will inspire you. The technology is not so profound and difficult to understand. embracing it may not immediately increase your salary, but at least in cold days, when there is no wifi, you can also open the browser console when it is lonely and cold, enter a while to warm your hands.

Below

Well, it's not what you think or what you want to eat. Later, I will continue to write some interesting developer services from time to time. In addition, I will write a series of StrongLoop articles to introduce more features of this framework. I hope you can try this fast-growing product.

Make another small advertisement: Recently I am working on a small class (free of charge) to teach high school students technical skills until they can participate in Hackathon on their own. If you are surrounded by high school students interested in technology, contact me ~ Fxp007@gmail.com

OK. You can make an appointment with the lost ones ~

Related Article

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.