In the root directory of the project...
- Install node modules
yarn install
ornpm install
. - Start development server
yarn start
ornpm start
.
- Create a folder in
/src/app/app-shell
with your angular modules. - Add a child route for your page to
/src/app/*.module.ts
. - Add a button to the navigation bar in
/src/app/app-shell/nav-bar/nav-bar.component.html
.
If you selected Azure App Service when creating your project, follow these steps:
- Press
Ctrl + Shift + P
in Windows/Linux orShift ⇧ + Command ⌘ + P
in Mac and type/selectWeb Template Studio: Deploy App
to start deploying your app. - Once the deployment is done, click "Browse website" in the notification window on the lower right corner to check out your newly deployed app.
If you did not select Azure App Service and want to create a new Azure App Service web app, follow these steps:
- Press
Ctrl + Shift + P
in Windows/Linux orShift ⇧ + Command ⌘ + P
in Mac and type/selectAzure App Service: Create New Web App...
to create a new web app.- Select your subscription
- Enter your web app name
- Select Linux as your OS
- Select Node.js 10.14 for a Node/Express application, Python 3.7 for a Flask application
- Press
Ctrl + Shift + P
in Windows/Linux orShift ⇧ + Command ⌘ + P
in Mac and type/selectWeb Template Studio: Deploy App
to start deploying your app.- You will have to select the same subscription again
- Find the web app that you've just created
- Click "Yes" in the notification window on the lower right corner (build prompt)
- Click "Deploy" on the window pop-up (deploy window)
- Click "Yes" on the notification window on the lower right corner (default prompt)
- Once the deployment is done, click "Browse website" in the notification window on the lower right corner to check out your newly deployed app.
Consider adding authentication and securing back-end API's by following Azure App Service Security.
Full documentation for deployment to Azure App Service can be found here: Deployment Docs.
The back-end is based on Express Generator. The front-end is based on Angular cli "ng".
The front-end is served on http://localhost:3000/ and the back-end on http://localhost:3001/.
.
├── server/ - Express server that provides API routes and serves front-end
│ ├── routes/ - Handles API calls for routes
│ ├── app.ts - Adds middleware to the express server
│ ├── constants.ts - Defines the constants for the endpoints and port
│ └── server.ts - Configures Port and HTTP Server
├── src - Angular front-end
│ └── app - Angular main root module
│ ├── app-shell - Angular main components
│ └── app.module.ts - Angular root module.
└── README.md
-
Angular Docs - https://angular.io/docs
-
Angular Router - https://angular.io/guide/router
-
Bootstrap CSS - https://getbootstrap.com/
-
Express - https://expressjs.com/
This project was created using Microsoft Web Template Studio.