From the course: Building Angular and Django Apps
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Running the Angular and Django development servers
From the course: Building Angular and Django Apps
Running the Angular and Django development servers
- [Instructor] While we are developing our Django rest API backend and Angular front end, we will need to run the development web servers for each of them. On the back end we will need to run the Django command which is manage.py runserver. And on the angular front end we're going to need to run ng serve which will launch the front end server and will automatically watch files and recompile and reload the Angular web app. To view the Django admin and any Rest API endpoints, we can navigate to localhost on port 8000. To view the Angular front end, we can go to localhost on port 4200. The Angular development server is configured in the proxy conf JSON file to proxy any requests made to /api and /oauth directly to the Django web server.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.