AngularJS Single Page App to store and retrieve Mobile Catalogue Information. Flask is used to provide Back-end support for app with JSON endpoins. Users can create accounts using their Google accounts (Uses OAuth2 User Authentication).
- Python
- Flask
- AngularJS
- Bootstrap3
- SQLAlchemy
-
Clone this repository
-
Install the required modules using the following command
$ pip install -r requirements.txt
-
change working directory to be the folder that contains app.py
-
run this to use flask cli commands
$ export FLASK_APP=app.py
-
Initialise database and its tables using
$ flask initdb
-
start the application server by
$ python app.py
- To get all categories and their items
http://localhost:5000/?json=all
- To get only items under a category
http://localhost:5000/?json=category&category={category_name}
- Using OAuth2 based user syste to manage site contents
- Secured cookie usage
- Single Page app using AngualrJS
- Any database engine can be used for the apllication backend if they are supported by SQLAlchemy and the respective db engine driver is installed.
- Update the SQLALCHEMY_DATABASE_URI variable in the app.py to use correct connection URI to the database.
- Update the authorised URI section in the Google Credentials and then update the client_secrets.json file.