StrongLoop is a powerful framework based on Nodejs, which contains almost all the functions required for mobile development full stack. Founded in 2013, it has few employees, a technology-driven and strong execution team. It was also in 2013 that I started to come into contact with StrongLoop. At that time, I looked at many frameworks. LoopBack is the coolest one I think. I still remember that I thought the documentation of LoopBack was too bad (mainly different from the online version), and I didn’t know how long I could live, so I gave up on it. After a year, I came back and saw this green framework. This year has made great progress.
Full stack frame StrongLoop
StrongLoop basically provides all the frameworks and tools for making a mobile product, from standard Backend server, Devops, application monitoring, and. To introduce all the products of StrongLoop, you have to write a long serial. I will just browse it here.
LoopBack
A very powerful WebServer framework, vaguely sees the shadow of Spring...
SDK
This is what I thought StrongLoop was the best use: it automatically generates the corresponding front-end SDK based on the back-end Model. RESTful API
MEAN stack promotes all new frameworks to support RESTful APIs by default, such as Node-restify in Nodejs, Sailjs and other things are born for serving APIs. StrongLoop also provides a tool (beta state) for designing APIs, which is of course much worse than RAML. Data model
It is easy to create data models and automatically generate corresponding RESTful APIs. Connectors
Of course, you can connect to various databases. StrongLoop Controller
Debug, Package Management, Build, Deploy, Cluster, Log and many more. Application Monitor
A bunch of modules that monitor the server. mBaaS
Using StrongLoop, you can also create your own LeanCloud, including Push, Geopoint, Social Login, User Management, various Replications, Offline sync (offline synchronization is a good thing), and connect to various Stroage clouds (built-in for AWS, Rackspace, etc.). Of course, these are actually functions provided in LoopBack, which means using StrongLoop to obtain immortality. start
Install StrongLoop sudo npm install -g strongloop
Create an application slc loopback (find a blank directory) It will only ask you what the project is called.
Create a Model slc loopback:model (Did you think of Yo generator~), and then it will ask a bunch of messy questions.
plural refers to the route name of the RESTful API. The route corresponding to a Model will be plural by default, such as the path of Post is Posts.
Guess it, like in LeanCloud, you should visit a place similar to 127.0.0.1:3000/xxx to see its background~ Well xxx=explorer http://127.0.0.1:3000/explorer You can see an API dashboard made with Swagger.
Let’s take a look at the structure of the project. Like Meteor, LoopBack divides JS code into server (server), front-end (client), and common parts (common, I personally think this pure schema method is clearer than Meteor’s segmentation).
Skip the API Explorer behind, how to connect to Database, and directly see how to use the API you just created on the front end. LoopBack's approach is to help you create SDKs of your current API, and currently only supports Android/iOS/Angularjs. If you use other web frameworks, you may have to be self-reliant.
Create your own SDK lb-ng server/server.js client/lb-services.js to check client/lb-services.js, it's not bad~
Well, your front-end engineer needs a document? Execute lb-ng-doc client/lb-services.js sometimes you need to add sudo in front (I don’t know why), and then visit http://localhost:3030/ to see the document~ This function is based on Docular. Also, if you click LoopBack Services and there is nothing in it, don't worry, refresh it.
See if it looks like the early Angular documentation~
API Designer
I believe that the reason why many programmers like Parsejs or LeanCloud is because of the model design (or API design) background of the graphical interface. If the "Yo generator" API creator used earlier doesn't look considerate enough, you can try StrongLoop's newly launched StrongLoop Studio beta.
In the project root directory
sudo npm install -g http://get-studio.strongloop.com/strong-studio.tgz install Studio. Start Studio strong-studio , automatically open the browser and go to the upper right corner of the StrongLoop official website to register an account (the document actually wrote On the bottom right is a link to go to the registration page on strongloop.com . Don’t you know if the page is easily modified...) Log in with the registered user name and see API Composer and Profiler. Bingo! Let’s play all kinds of things!
psIf you encounter a problem like SyntaxError: Cannot parse package.json: Unexpected token e at this time, check if the package.json in your project root is messed up by jslint (I don't know why...)
OK OK OK, let me tell you that this beta is really special... Try not to use it in projects that have written code before...
Lazy people
If you are missing a Mongodb to play with: Mongolab
If you want an IDE that can be developed in collaboration: Koding
If you want a cheap and easy-to-use VPS: Digital Ocean
If you think their home is not cheap enough: Serverbear
If you don't even want VPS, you just want to deploy a Node project: Nodejitsu
If you want to design an API for the client as soon as possible, but don't want to use Node, find a place to deploy: Apiary
If you want to make (copy) an APP, but don't want to spend money to hire a bunch of people: Appdupe
End of 30 days
This is the last 30hackdays, and I finally got it done (please...). Anyway, I have learned a lot in the past thirty days, how to find the services I want, how to quickly implement prototypes, how to compare competitors of developers' products...
Looking back, the content of the article is definitely not as detailed as Shekhar's Learning 30 Technologies in 30 Days: A Developer Challenge (it is indeed not that much time and effort is being invested), but the technology I chose is more extensive (or more messy), which is also a process of expanding my horizons.
I hope my series can give you some inspiration. Technology is not all that profound and difficult to understand. Embracing it may not raise your salary immediately, but at least in cold days, without wifi, when you are lonely and cold, you can also open the browser console and enter a while to warm your hands.
under
Well, it's not the one you think, nor is it for eating. After that, I will continue to write some interesting developer services I have found from time to time; in addition, I will write a series of articles on StrongLoop to introduce more features of this framework, and I hope everyone can try this rapidly developing product.
Let me make another small advertisement: I recently worked in a small class (free) to teach high school students skills until I reached the point where I could participate in Hackathon by myself. If you have high school students around you who are interested in technology, please contact me~ [email protected]
OK, those who lost love will make an appointment~