Skip to content

cheind/py-rest-angularjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-rest-angularjs

py-rest-angularjs contains blueprint code for projects getting started with AngularJS and Python backends such as flask or aiohttp.

The web application consists of a static file serving part (to deliver AngularJS content) and a simple REST API to handle function calls from the AngularJS frontend.

Code is written for Python 3.5+ and AngularJS 1.6.

Backend running flask

To run the flask based app make sure to have flask installed

pip install flask

Then from the directory containing this Readme.md run

python app_flask.py

and point your browser to the URL mentioned on the command line interface.

Backend running aiohttp

aiohttp is based on Python's asyncio library for concurrent code. The syntax in the example uses keywords (async, await) which were introduced in Python 3.5 and later.

To run the aiohttp based app make sure to have aiohttp installed

pip install aiohttp

Then from the directory containing this Readme.md run

python app_aiohttp.py

and point your browser to the URL mentioned on the command line interface.

About

Blueprint code for projects combining flask/aiohttp and AngularJS in a single web application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published