Mod_rewrite to handle paths ?


Login or Register to Reply

 
Thread Tools Search this Thread
# 17  
What is the command ng associated with; each time I try to run that command I get the error; command not found ?
# 18  
To run an Angular app, you need to build it first.

To build it, you need to build it locally on your own machine, then upload it to your web server.

You are trying, or so it seems, to upload and run an Angular app to a web server without building it first.

So, you need to install node.js and Angular on your local system (not the remote web server) and then after you have node.js and Angular installed, you need to build the Angular app you want to deploy first. Then, after it is built, you can deploy it.

Please review the link above and study Angular before asking more questions about it. After you have read the "Getting Started" Angular docs and installed Angular on your desktop, then post back if you are still lost.

You seem to be trying to deploy an Angular app with zero knowledge or experience with Angular, without having Angular installed locally (on your desktop) and without understand the basics of how to build and deploy an app created to be developed, built and deployed with node.js.

You need to understand the basics about Angular first, so please review the link I sent you in my earlier post.

Thanks.
# 19  
MaxtheCat,

I suggest you relax, enjoy a coffee, a beer, a glass of wine, or whatever you like and watch a few YT videos, for example:

The Net Ninja:

Node JS Tutorial for Beginners #1 - Introduction - YouTube

AngularJS Tutorial #1 - Introduction to AngularJS - YouTube

Traversy Media:

Angular Crash Course - 2019 - YouTube

Node.js Crash Course - YouTube

These tutorials will take you well on your way to understanding Angular and node.js. Thirty minutes of video tutorials will help you greatly (hours are even better) and are generally more useful, and often more entertaining, than watching a movie rerun on TV or a Netflix video.

You do not need to watch all of them or the entire series on one playlist if you do not want to learn Angular and Node, but you should at least learn the basics of what you are doing when you are installing an Angular application.

If you do not understand the basics, how can you build and deploy an Angular app?

From your posts, you seem be missing a basic understanding of what an Angular application is and how to build and deploy it. You are seemingly trying to deploy it without building it; and this is not now modern SPA applications are deployed. You must build the application using node.js, normally on your desktop, then deploy it to a web server (remotely).

Developers, like me, develop, build and deploy node.js apps like this continually, BTW. But we normally run node.js in dev mode before we build. All of that is described in the each of tutorials above. Just pick one and learn a bit about what you are trying to do.

I prefer Vue.js over Angular, but that's just my personal preference.
# 20  
This is the instructions for installing the app, no where does it mention what you suggest;


Quote:
  1. Copy the folders and files (you can skip the .hg* stuff) to the location you want to use TaskBoard.
  2. Optional: Minify everything for better performance in production. (Requires that everything but compiler.jar in build/ is executable.)
    • Open the TaskBoard directory in a terminal
    • Run ./build/build-all
  3. Open your browser to the location you put TaskBoard and log into the site with the username admin and password admin.
Ensure the api directory is writable so the back end can do its job.
# 21  
That is because the instructions assume you have node.js and Angular installed and you have basic knowledge about what you are doing.

Those instructions assume you know what you are doing and have some minimal experience with Angular.

It's obvious you have no experience with Angular or Node.js but are trying to build and deploy an Angular app.

I'm going to close this thread if you do not listen to me and go learn what you are doing before wasting more of my time.

I cannot help you if you are not willing or are too lazy to learn Angular and Node.js.

Cheers.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Mod_rewrite http to https
arumon
Hi Team, I have a question on the apache mod_rewrite module. I have a requirement of rewriting only specific url's to https. Requirement below:- want to match a word (test) on the url and if matches then it should rewrite to https. example:- ...... Web Development
1
Web Development
Difference between handle to the thread HANDLE and thread identifier pthread_t
rupeshkp728
This question might be silly but its confusing me a bit: What is the difference between handle to the thread HANDLE and thread identifier pthread_t? ---------- Post updated at 01:52 PM ---------- Previous update was at 01:48 PM ---------- Sorry I saw details and HANDLE is in windows and...... UNIX for Dummies Questions & Answers
0
UNIX for Dummies Questions & Answers
mod_rewrite help
Adrnalnrsh
Here's my situation. When a user access the site domain.com it redirects to /portal which displays SKIN1 by default. When a user accesses the site domain.com/portal?branding=SKIN1 it displays SKIN1 by default as well. When a user access the site domain.com/portal?branding=SKIN2 it...... Web Development
0
Web Development
mod_rewrite RewriteMap - possible to 404?
sneakyimp
In my strenuous efforts to get SEO-friendly urls, I'm using a rewrite map in my apache setup: RewriteEngine on RewriteOptions MaxRedirects=5 RewriteMap seo prg:/Applications/MAMP/htdocs/map.php #map requests for the original file to the new SEO friendly urls RewriteCond...... Web Development
0
Web Development
mod_rewrite problem
arsonist
hi i'm very new to mod_rewrite. I can't seem to have this work. I have a site which has 4 pages : home, links, adverts and contacts page. the adverts page is linked to this url http://www.xxxxxx.com/adverts.php. What i want is that whenever the adverts page is clicked , it will show...... Shell Programming and Scripting
0
Shell Programming and Scripting