How can I set up a mean stack app with mean.io which uses angular 1.4 and bower? - mean-stack

I want to code an app in angular 1.4 and for that I came across mean.io the best scaffolding tool presently.But when i downloaded it,i got webpack and tons of various unfamiliar stuff.Please tell me how i can download a mean.io app which uses angular 1.4 or if not then a nice scaffolding tool for angular 1.4 and steps to install it.That would be a great help !
Thanks in advance.

What you can do is head over to the Github page for the mean.io framekwork at this link Mean.io Github version 0.7.0. From there take a look at the read me and scroll follow the instructions.
You'll need to install mongo database on your machine and make sure its running each time you want to run your application. Here is a good link, follow it step by step. MongoDB install - windows
Then you will have to have the latest version of node.js installed. It can be installed here. node js download
You will also need to install the latest version of Git to your machine. It can be installed here Git download
Once the above are done, you will need to navigate to a directory on your computer using the command prompt/terminal and type the following commands. I suggest you go to C:\Users\YourName
npm install -g npm
npm update -g
npm install -g mean-cli
npm install -g bower
They will take some time so be patient.
Then type this command to clone the boilerplate code to your machine
mean init <yourAppTitle>
When that is done change directories into the project folder you just made like this
cd yourAppTitle
Then inside this folder type the following commands to install to your project
npm install
bower install
You may see some warning signs/errors and you can ignore them for now and proceed.
Finally, type this command inside your project folder - this will start your app. Remember to have mongodb running simultaneously or this will not work
gulp
Head over to your browser and type in localhost:3000
You should see the boilerplate code.
If you cannot get Mean.io working you can try installing a different angular scaffold here - angular scaffold. Read through the readme file and you will see steps to install the angular scaffold

Related

I need help for REACT in windows

Today i installed react in my pc with windows, i had to install chocolaley, i didnt like this, but no problem, i installed chocolaley. Now, when i want to create a app (in the powershell of windows) using the command meteor install my_app the Meteor is so slow, and the instalation dont finish, the message that show all the time is meteor loading package standard-minified css I need hellp, and now i cant use linux or OSX. I have to tried the solution but i cant now.
Try npm cache clean --force to clear your npm cache then install meteor again

trying to install Polymer 2 CLI

I am trying to run a web app using Polymer. I recently installed Bower & Polymer CLI via Bower – however, whenever I attempt to run 'polymer serve' I receive the message '-bash: polymer: command not found' on Terminal.
Any tips on how I can get this working?
Thanks.
You should update the polymer-cli then create a project using polymer init, use polymer 3.0 app which use npm instead of bower the run polymer serve
This is usually due to an old version of node. I suggest you update node, as well as npm and git. Try installing polymer-cli again with the new node. Then you should be able to run polymer command.
This generally happens when the module is not installed or configured properly or an outdated version. Install or update the required module i.e, polymer-cli. After installing open new terminal or restart terminal and run polymer serve command.

Playground start in the developer environment

How to Start Playground in the developer environment? Please provide the document.
I am following the developer installation guide: https://hyperledger.github.io/composer/tutorials/developer-guide.html
If you want to run the Playground locally, install the composer-playground using the following command.
npm install -g composer-playground
I don't see how to start the playground after that.
Thank you, Christo. I am able to install now. I installed playground first and installed all other composer components(npm install -g composer-cli,npm install -g generator-hyper ledger-composer,npm install -g composer-rest-server). Problem is now, I am not able to deploy .bna using admin credentials for composer-rest-server. Next tried deploying using the PeerAdmin for composer-rest-server, which was successful.
Now the issue is not allowing the asset creation (Throwing, the asset cannot be created via PeerAdmin). What is the proper way to set up the developer environment plus playground in the same environment?
The instructions are in the tutorial documentation. Basically, you need to install and start the Hyperledger Fabric network, configured for Composer. It will launch the playground in your favorite browser.
After the first time you run it, you can start/stop the network with composer.sh to re-start, and composer.sh stop (from the directory into which you installed fabric-tools) to shutdown all the Fabric and Composer docker images. Once started, you can open http://localhost:8080/login to start the playground.

MEAN install not working

I am not sure why my MEAN install is not working. I am trying to get a test page on localhost:3000 for a class that I am taking. here is a screenshot of my terminal:
my terminal
Your must be install yeoman to install and create a MeanJS project.
The scaffolding tool (you may have already installed it as it is part of the Yeoman tool set). To globally install yo, you will need to use npm:
$ npm install -g yo
Install the generator, with:
$ npm install -g generator-meanjs
Finnaly, create a project
$ yo meanjs
I noticed you're trying to use mean-cli. Taking into account that you included the meanjs tag, I will respond based on this.
Well, you do not specify what mean framework you're using, I think Mean.IO is that.

Install the socket.io offline

When am trying to install socket.io using npm, am getting the following errors.
Recently our Indian government has blocked the access to github. So I do not currently have access to github. see the news here
So I was trying to install the socket.io offline. Downloaded the socket.io.master from here( Thanks #Vitaliy Zurian for this link
npm install socket.io.master
Even then its failed because it's fetching the dependencies from git.
so my questions are as follows
Is there a Step-by-step guide on how to install socket.io offline?
Or
Is there any alternate installer for socket.io?
As a temporary solution, you can download this library from elsewhere to your local machine, and then use the local path for installing it:
npm install /path/to/your/local/socket.io --save
For more information refer to the npm docs

Resources