Skip to content

leolanese/Python-API-Angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-API-Angular

Python

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

API Python

// check package installer for Python
pip --version

// check Phyton version
python -V

// check Flask version
flask --version
// 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)
python app.py

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

// 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


💯 Thanks!

Now, don't be an stranger. Let's stay in touch!

leolanese’s GitHub image
🔘 Linkedin: LeoLanese
🔘 Twitter: @LeoLanese
🔘 Portfolio: www.leolanese.com
🔘 DEV.to: dev.to/leolanese
🔘 Questions / Suggestion / Recommendation: developer@leolanese.com

About

Python-API-Angular

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published