An open API service indexing awesome lists of open source software.

https://github.com/leolanese/python-api-angular

Python-API-Angular
https://github.com/leolanese/python-api-angular

angular python typescript

Last synced: 2 months ago
JSON representation

Python-API-Angular

Awesome Lists containing this project

README

          

# Python-API-Angular

## Python

> I will be using `Flask` is a popular Python web frameworks for building robust back-end systems

## API Python

```js
// check package installer for Python
pip --version

// check Phyton version
python -V

// check Flask version
flask --version
```

```js
// RUN BACK-END
// New-Item -ItemType File app.py
// app.py
from flask import Flask, jsonify

app = Flask(__name__)

@app.route('/api/hello')
def hello():
return jsonify(message='Hello, World!')

if __name__ == '__main__':
app.run(debug=True)
```

```js
python app.py
```

> This simple Flask app creates an API endpoint /api/hello that returns a JSON response with the message from server

```js
// RUN FRONT-END
// use angular 20
npm i -g @angular/cli

ng new --routing=false --style=css --standalone

ng version

cd AppProject/src/app

ng serve --open --port 4200
```

## Demo

![Python](https://raw.githubusercontent.com/leolanese/Python-API-Angular/main/app/src/assets/Python-API-Angular-Capture.jpg)

---
### :100: Thanks!
#### Now, don't be an stranger. Let's stay in touch!


leolanese’s GitHub image

##### :radio_button: Linkedin: LeoLanese
##### :radio_button: Twitter: @LeoLanese
##### :radio_button: Portfolio: www.leolanese.com
##### :radio_button: DEV.to: dev.to/leolanese
##### :radio_button: Blog: leolanese.com/blog
##### :radio_button: Questions / Suggestion / Recommendation: developer@leolanese.com