Sails JS - How to install Sails JS HTML documentation on Mac? - node.js

Would you please help me to install Sails Js documentation on Mac? The documentation repository is on here, I also installed doc-templater using npm install doc-templater as states here.
Thanks for your time.

Related

Sharepoint Workbench : This site can provide a secure connection

I've created a webpart.
I'm using a Node.js, with npm, Yeoman and Gulp.
I installed a certificate with gulp trust-dev-cert, and I have this error on my page "This site can provide a secure connection", and the app isn't accessible.
This is my package.json
My node version is 8.9.1.
I tried to change the NODE_NO_HTTP2=1 environment variable , like this tutorial , but it doesn't work.
Do you have any idea to resolve my certificate problem ?
Thank you very much
Not sure why it isn't working after NODE_NO_HTTP2=1 changes.
I would suggest that you uninstall the current Node.js installation and reinstall the Node.js with the previous LTS version.
The previous Node.js version is v 6.12.
You can download it and install it on your machine and then run the gulp commands.
Link - Node.js v6.12.0
As mentioned here, currently only Node v6 is supported in SPFx

Apollo with Angular Quickstart : Unknown error

I am a complete newbie in web development, and I am completely lost.
I want to develop a web application with a backend developed with Django, and a frontend developed with Angular. I want the interaction between the backend and the frontend to be accomplished with Apollo and GraphQL.
Taking this into account, I started developing a couple of simple models in Django, and doing some queries with the Python package graphene. It seems to be working well, so now I tried to develop a simple Angular application that renders the instances of the Django created models.
And that is where I am stuck. I have downloaded the Angular Quickstart used in the Angular tutorial (https://github.com/angular/quickstart) to start testing Apollo. I have run the following commands in the terminal:
$ git clone https://github.com/angular/quickstart.git
$ cd quickstart
$ npm install
Furthermore, to install Apollo, I have run the following commands:
$ npm install whatwg-fetch apollo-client apollo-angular graphql-tag --save
Finally, to run the local server, I typed $ npm start in the terminal. And that is where the following error is raised:
node_modules/#types/isomorphic-fetch/index.d.ts(8,30): error TS2304: Cannot find name 'fetch'.
I am getting mad trying to solve this issue, and I have not found any documentation on this, maybe because I do not have an extensive background on web development.
I am using node v6.10.3, npm v3.10.10 and Ubuntu 16.04 LTS. Any advice or help to solve the problem would be appreciated, thanks.
you have a problem with typings, try installing #types/whatwg-fetch.
The release of #types/isomorphic-fetch you have installed (one of the deps of apollo-client) assumes that you have a declaration of window.fetch.
The ~2.3 version of TypeScript has that definition in dom library and I think this is why Apollo and #types/isomorphic-fetch decided to work this way.
There are two solutions:
Install #types/whatwg-fetch package (or different) or define fetch by yourself
Update TypeScript to 2.3.X (and have dom specified in compilerOptions.lib

How To Run Redux Example Todo List on NodeJS

i found example app on Redux documentation here http://rackt.org/redux/docs/basics/ExampleTodoList.html .
But have one question how to run it on nodejs server and preview the results on browser
Is beter if using expressjs as framework without using express generator.
package.json there has all the packages requirements
use npm install to install all dependencies and then npm start
https://github.com/kweiberth/react-redux-todo-demo - This will come in handy for you - it isn't mine though.
Just copy the repo and get started.

Bower to Sails - What have I missed?

I have been struggling with this and would appreciate any help you can offer.
I have a fresh install of sails and have configured it to use handlebars. It lift beautifully.
I have installed bower using
npm i sails-generate-bower
After a quick
bower install bootstrap --save
I can see that it has generated the core bootstrap files in
/bower_components //the root of my project
What do I do now to ensure that upon lift I have the Bootstrap files in the correct places?
Their are many ways to do this.
You either configure your asset pipeline config/tasks/pipeline.js or HERE a similar question and valid answer.
Documentation

tutorial that install couchnode on couchbase/mac os x&linux

I hope to integrate couchnode to my project that make me to access couchbase via nodejs conveniently.
Is there any tutorial that demonstrate how to install couchnode
https://github.com/couchbase/couchnode
the document on the url above does not mention the installation of couchnode
on mac/couchbase
or any person has the experience
Your comment welcome
I am using mainly Mac and it is working perfectly.
The doc mention the Mac using http://mxcl.github.io/homebrew/ :
brew install libcouchbase
Then you just need to do
npm install couchbase

Resources