I will be using
Flask
is a popular Python web frameworks for building robust back-end systems
// 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