Book
Submodule 23.4: Building and Deploying the Angular Application
Submodule 23.4: Building and Deploying the Angular Application
Completion requirements
View
Deploying your Angular Application
To deploy your Angular application you need a server. Fortunately, we already have the json-server available on our computer. Copy the contents of the dist folder to the public folder of your json-server.
In your Terminal, go to your json folder and run:
json-server --watch db.json -d 2000
Access your Angular site by running localhost:3000 in your browser. The browser will be redirected to the home page.
If you want go to the localhost:3000/contact page and leave a feedback.
You can see this feedback in your db.json file!
- See more about Deployment