Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use node js as backend with angular frontend

1. Create a folder: mkdir project-name
2. Enter in the folder: cd project-name
3. Install Angular (you must have npm): npm install -g @angular/cli
4. Create Angular project: ng new frontend
5. Create server folder: mkdir server
6. Enter in the folder: cd server
7. Init Nodejs: npm init
8. Create index.js in server
9. Setup proxy in Angular to use Nodejs
 
PREVIOUS NEXT
Tagged: #node #js #backend #angular #frontend
ADD COMMENT
Topic
Name
1+4 =