This project is a very minimal demo, using Angular(frontend), Python(Flask) on the backend and docker. docker-compose
is used for the overall deployment of the application. The user interface is built on Angular Material,while also Tailwind CSS was used for easy styling.
The entire setup of the backend is handled by docker
The Dockerfile
in the root of the backend project, is setup to automate the deployment of the backend, also to scale the backend (if needed)
- Login: POST /
- Get Transactions: GET /
- Cancel Transaction: PUT /
Cancelled transactions are written to file named 'canceled_transactions.txt' in tge root of the backend project
The frontend has mainly 2 pages: Login page and Transactions page. Services in Angular were also implemented as all api calls are wrapped in services.
- Run the following command in CMD (Windows) or Terminal (Mac & Linux)
git clone https://github.com/dondippino/angular-python-demo.git
- Go to the cloned directory
cd angular-python-demo
- Run the
run.sh
script or use docker-compose directly./run.sh
ordocker-compose down && docker-compose build && docker-compose up
- Go to the frontend directory (Open an new terminal)
cd frontend
- Install dependencies
npm install
- Run the application
npm run start
- Visit http://localhost:4200 or http://127.0.0.1:4200 in the browser
- Docker
- Docker Compose
- Angular(Javascript/Typescript)
- Flask (Python)
- Angular Material
- Tailwind CSS