Its really confusing to setup the best project structure for node.js
I'm developing node.js application that works on Browser, Mobile and Desktop.
This application has many modules like billing, support, dashboard etc..
I started with express.js MVC pattern, later Sails.js looked very attractive.
Then came across MEAN Stack and finally landed on Microservices Seneca.js
Micro-Services looks like what i needed, But i see that Sails.js don't support it.
I wanted to use Aerospike NoSQL, but waterline orm doesn't support it right now.
So what is the project structure solution you are using for node.js that works in Browser, Mobile and Desktop?
This is an highly subjective question. But Meteor is what you are looking for. It does support desktop, browser, mobile, etc. and encourage NoSQL by it's native MongoDB support.
As a reference, I personally did try every single one of the frameworks you have tested (Sails, MEAN, etc.) and ended up with Meteor as my preferred.
As for the project structure, you can read more on various tutorials, books and YouTube videos. The learning curve is steep, but the community behind the project is quite alive and helpful.
Related
Could you please give me a piece of advice about how to implement CRUD or DB(PouchDB) modifications using FORMs or any other efficient way in Electron?
The point is I would like whole application to behave as desktop tool and it seems to be possible in Electron. However I cannot determine the best way to do this especially if I would like to add to nice eye-candy tricks to make UX as smooth as possible.
First of all electron is not responsible for the visual appearance of your application. It is a framework which wraps your webapp into a desktop application.
That means you need to use standard web technologies (html/js/css) to create your site including 'eye-candy' and animations.
My suggestion is to do a tutorial which explains how to connect electron with a javascript framework like angular. If this is running you can attach a database and all the hot shizzle afterwards.
This tutorial is very good and well explained:
https://scotch.io/tutorials/creating-desktop-applications-with-angularjs-and-github-electron
enjoy!
I want to develop Mobile App using Node.js and Html5/Bootstrap as frontend?
I searched the web , but not getting any proper source of look. I am New in Node.js , but i Know HTML5 / Bootstrap.
Can anyone Guide me through to Develop Mobile App using these two?
While this is an opinionated question/answer and shouldn't be on SO, I'll share my experience as I was in the same boat recently:
For the front-end (The app): Look up PhoneGap (Apache Cordova) to get an idea about building cross-platform mobile apps using HTML5/CSS/JS. Keep in mind that you can use a good amount of front-end frameworks to ease your workload (AngularJS, Framework7, jQuery, etc.)
For the back-end (Server): Node.js is a great start, however you'll need to code your backend almost from scratch this way. I suggest looking up "Parse Server" to use it for your backend. It's an open-source solution for mobile apps backends (MBaaS). If you still decide to code your own full backend, then I highly recommend learning MEAN stack (MonogoDB, Express.js, AngularJS, Node.js), it might take you a while, but the portable experience you'll get is huge.
Either way, if you want to make high performing apps, it's always recommended to go native (Android apps using Java and Android Studio, iOS apps using XCode and Swift)
I hope this helps,
Best of luck
I have been searching all over for a tutorial that could make a RESTFul API without using any frontend javascript to no avail. I am very new to Javascript/ web-development and have been doing many tutorials and mini projects to get myself acquainted with it.
This is a test for a job at a startup as they looking for an entry level developer. Their requirements are much different as they want me to use their in house build APIs.
What I am looking for is some help on how to get started building a RESTful API using node.js, express, Mongo and without using any frontend javascript. Thanks.
Recommendations for tutorials usually don't make good questions for Stack Overflow, but you might want to take a look at the following books. They helped me out quite a bit when getting started with Node:
Express Web Application Development
Advanced Express Web Application Development
RESTful Web API Design with Node.js
As others have commented, a REpresentational State Transfer API is implemented server-side. You could consume such an API from the client-side using JavaScript, but not build one on the client-side.
Express is a very popular web framework for Node, and you can certainly use it to build APIs, but you might also take a look at Restify. Hope that helps you out.
I have a project where I can work on rails or nodejs to build a questionnaire style app, where the admin can post questions, check for top score, average scores and the user can take the questions. I have a basic knowledge on both rails and node but not good enough to build a fully functional app. I am working on it, but would like to know any good frameworks that would help me make the building process quicker, either in rails or nodejs. I did come across devise and surveyor in rails. please do suggest good starting points or other frameworks that would be useful in both rails or nodejs.
How about using sth like https://github.com/patocallaghan/questionnaire-js
This is a purely (client) javascript framework (using MVC frameworks underneath, like Angular).
On server-side one would only need to validate and save the data.
I would like to develop an AngularJS app with Breeze. I usually use NodeJS with Express but I hear it wont work with Breeze. All the example on breezejs.com use ASP.Net but i am on a mac and you can't run visual studio... What are my options ?
We are releasing a sample later today (in breeze v1.3.0) that shows Breeze talking to an arbitrary web service that could have been written on any platform using any technology.
Obviously, we need more of these examples and as importantly we need to show server side implementations of how one might write these web servivces to best leverage Breeze. But... this is all definitely on our roadmap, and we are actively looking for partners in this process.