/microservices

Restful Web App served by microservices using Flask

Primary LanguagePython

FENIX API

The Project consists in a Restful Web App served by microservices using Flask (microservices architecture). Exists microservices for each specific API services and the app was built using the concept of mobile code a.k.a Web App (Front-end: Html, Javascript, AJAX; Back-end: Flask). In this project you will find some features as the QR code reader, 0Auth and microservices caching. The QR code reading can be found at those repos:

The project source can be found at bmalbusca/microservices/API_project/src/

Installation

You should have python3 installed in your machine.

  1. Git clone:

    • Using HTTPS method: git clone https://github.com/bmalbusca/microservices.git
  2. Create a virtual environment (optional)

    • Install virtualenv package: pip install virtualenv
    • Go to src folder: cd ./microservices/API_project/src
    • Create environment .env: virtualenv .env
    • Activate environment: source .env/bin/activate

    see more at: https://docs.python-guide.org/dev/virtualenvs/

  3. Install python packages:

    If you want to use a virtual environment, you sould make the installation inside the folder where your .env is located and, must be activated!

    • pip install json2html
    • pip install requests
    • pip install Flask

Usage

See the guidelines available at API_project/src/README.md

Screenshots

Admin login page

References

@example:~ curl -X GET -H 'Content-Type: application/json' https://fenix.tecnico.ulisboa.pt/api/fenix/v1/canteen


Are you new to Git? 〰️