-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to start? #3
Comments
Hello, If you have followed the configuration instructions, then just start a web server from app directory and you should be all set. Let me know if you have any further questions. Thanks, |
Hi thanx! Wich server? ng start worked. npm install -g angular-cli ng serve also followed https://github.com/angular/angularfire2/blob/master/docs/1-install-and-setup.md but now it does not work anymore. |
Hi Tim, |
When i use ng serve I see "app works" but not the angular survey. |
Well, you have to tweak a few things in order to use CLI tool for Angular. However, launching a web development server is the easiest way to run most JS apps from GitHub. I would suggest you to refer to this question and solution - How to easily start a webserver in any folder?. Besides that, if you are using a IDE (e.g. NetBeans, IntelliJ), they usually have a simple "Run Project" or "Run this Application" button that starts a web server automatically in one click. |
Hi Thanx for your help but it does not work. Also put it in mamp and it does not work. Wich commands do you use? |
What error messages are you getting? I usually use "Run Project" function in IDEs for running these kinds of apps, but I am sure |
I get a white screen |
Did you see any error messages in console? Did you run the web server in the project directory? |
127.0.0.1 - - [20/Dec/2016 22:40:06] "GET /app/js/directives.js HTTP/1.1" 200 - |
That's a good sign, but I would like you to look at the debugging console. Normally, you activate debugging in your browser with F12, and select "Console" in the debugger menu. Chrome would be best if you have it installed. |
ncaught ReferenceError: angular is not defined |
That doesn't make any sense. This project doesn't have the main.js file. What are you using for the web server? Are you pointing the web server at the right directory? |
i wrote this code inside the directory. python -m SimpleHTTPServer 8000 how to put the web server to another directory? |
Go to the directory you want and run the python simple http server from that directory. |
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.8/$injector/modulerr?p0=myApp&p1=Error%3A%2…2F%2Flocalhost%3A8000%2Fapp%2F%2Flib%2Fangular%2Fangular.min.js%3A21%3A179) |
Which file does this error complains about? It looks the same as the error you got last time. Make sure you are looking at the right directory. |
it works ;-) thanx! any tips on how to upload to server with use of terminal commands after finished |
It depends on which host you'd like to use. I would suggest to start with free hosts like Firebase Hosting or GitHub Pages if you don't have a host. |
great support Thanx! Ps where to edit the css?In main css or bootstrap theme? |
I have put credentials in firebase but how to get this angular running?
The text was updated successfully, but these errors were encountered: