GithubHelp home page GithubHelp logo

datt30 / python_angular_fullstack_poc Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 6.41 MB

A good proof of concept focused on a conventional scenario in which data interacts with frontend and backend through APIS, the complet stack of the POC are below in description.

License: GNU General Public License v3.0

JavaScript 99.62% TypeScript 0.20% HTML 0.05% CSS 0.03% TSQL 0.01% Python 0.09%

python_angular_fullstack_poc's Introduction

Poc Fullstack Web Project

A good proof of concept focused on a conventional scenario in which data interacts with frontend and backend through APIS, the complet stack of the POC are below in description.

Fron-end Layer

For create the front-end I used angular 8 and for UI component infrastructure Material Desing.

Back-end and Service Layer

  • Framework for APIS with flask
  • Tests with unittest for python
  • ORM with SQLAlchemy

Data Layer

During this proof of concept I used a local server and SQL Server Express distribution, but also you can use the distribution of SQL Server you prefer, just change the configuration present in api_poc_project/app/config.py

  • SERVER = 'localhost\SQLEXPRESS'
  • DATABASE = 'POC'
  • DRIVER = 'SQL+Server'
  • SQLALCHEMY_DATABASE_URI = f'mssql+pyodbc://{SERVER}/{DATABASE}?driver={DRIVER}'
  • SQLALCHEMY_TRACK_MODIFICATIONS = False

Also the scripts to create the tables and stored procedures are in the ScriptsDB folder.

Documentation

How to run the entire app?

    1. Create local DB with name "POC" in any distribution of SQL Server and run the scripts presents in ScriptsDB folder.
    1. Execute run.py present in api_poc_project
    1. Use any browser to access http://127.0.0.1:5000/

Future improvements

  • Add central log register for tracking the errors and make troubleshooting application problems easily solved.
  • Add tokens to the API and management components.
  • Change default port, because port 5000 its not recomended for production.
  • Verify CORS politics in clients calls to the API.
  • Python script to automatically run ng build command to generate single page integrated with flask in a blueprint. (DevOps improvement)

Missing features

  • Call DB stored procedures from backend
  • Components in Angular for Bill and ExternalProvider
  • API's control to foreign keys in DB

Notes:

  • All that you need from python libraries and packages it's present in requeriments.txt
  • Feel in complete confidence to contribute to this project :)

python_angular_fullstack_poc's People

Contributors

datt30 avatar

Stargazers

 avatar  avatar  avatar Sara Hernández avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.