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
- Host: GitHub
- URL: https://github.com/leolanese/python-api-angular
- Owner: leolanese
- Created: 2024-01-04T13:20:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-05T09:58:11.000Z (over 2 years ago)
- Last Synced: 2025-02-24T12:11:35.425Z (over 1 year ago)
- Topics: angular, python, typescript
- Language: TypeScript
- Homepage:
- Size: 263 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

---
### :100: Thanks!
#### Now, don't be an stranger. Let's stay in touch!
##### :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