Skip to content

javierp183/TPC_Pereyra

Repository files navigation

Trabajo Practico

Technologies:

- SQLite ( sqlite tools for windows )
- Python ( Anaconda for windows systems)

Extra Technology:

- Docker ( easy_to_build ) image to upload to the cloud or on-promise docker service.

Libraries:

- Bottle
- Pony.ORM

How to use:

Ensure you have " python3 " installed on your system and execute the following commands to deploy database with relathionships and populate data on Vouchers table.

anaconda for windows systems: https://www.anaconda.com/distribution/

and sqltools for windows: https://www.sqlitetutorial.net/download-install-sqlite/

Docker image

Please, get Docker installed on you laptop/desktop or create an account in some cloud service ( Google Cloud / Amazon or IBM Cloud ) to use it.

For Mac: https://docs.docker.com/docker-for-mac/install

Youtuve Video: https://www.youtube.com/watch?v=O4Yro0VN5Ds

For Windows: https://hub.docker.com/editions/community/docker-ce-desktop-windows

For Linux ( RHEL / Centos or Fedora Core ): #yum install docker or #dnf install docker

For Ubuntu: #apt-get install docker

####################################################################

For linux or Mac:

Clone Repository

$ git clone URL

Project Directory

cd <path>

Install Deps

$ make deps

Start the App

$ make start

Populate Database

$ make populate

Cleanup

$ make clean

For windows:

Clone Repository

$ git clone URL

Project Directory

cd <path>

Install Deps ( anaconda console )

$ conda install -c conda-forge bottle
$ conda install -c conda-forge pony

Start the App ( powershell console or cmd )

$ python start

Populate Database ( powershell console or cmd )

$ python populate

Cleanup ( powershell console or cmd )

Docker Image

git clone project
cd project
docker build -t "tpc_pereyra" .
docker run -p 8080:8080 -it tpc_pereyra
Go to firefox browser -> url:  http://localhost:8080/route's

Author: Javier E. Pereyra

About

Trabajo Practico Cuatrimetral de la UTN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published