This repo is the supporting material for the following blog posts:
- Consuming APIs In Angular: The Model-Adapter Pattern
- Consuming APIs In Angular: Displaying Data In Components
This project was generated with Angular CLI version 6.0.5.
For the Angular app, install dependencies with:
npm install
The backend server requires Python 3.6+. Its only dependency is [Bocadillo], which can be installed using:
pip install bocadillo
Alternatively, if you're using pipenv, you can run pipenv install
.
First, fire up the backend server:
python app.py
It will be running at http://localhost:8000
.
You can then start the Angular dev server using:
ng serve
Navigate to http://localhost:4200
to see the result. 🎊
MIT