A repository to do some chalanges to Kaffa Mobile
Author: Vinícius Viana dos Santos
Objective: Complete at least 2 of the exercises from the Kaffa- pre-qualification test (2019/2S) pdf.
To configure all the project its needed to create an environment and install all the required libraries.
To do this, first install virtualenv
library with pip.
sudo apt install python3-venv
python3 -m pip install --user virtualenv
Then, to create the environment, inside the simple-todo directory run:
python3 -m venv env
Finally, activate the environment. Execute:
source env/bin/activate
Once a virtual environment was created and activated, install all the libraries that the project require.
All the requirements are listed in the requirements.txt
file.
To install all the requirements run: pip install -r requirements.txt
Run the following command: python cnpj.py
A model of a database was designed to use in this exercise. To build it, open the Python interpreter and run:
>>> from app import db
>>> db.create_all()
>>> exit()
To execute the project, inside the simple-todo directory, run the following command: python app.py
Run the following command: python rest.py
The answer is available inside the Simple Order Manager pdf.