Passei Direto is an academic network for university students whose mission is to connect students. Since 2012, Passeidireto.com already concentrates over 15. A free inside look at Passei Direto reviews for other companies. Company reviews and salaries posted anonymously by employees.
The project consists of preparing the environment provisioning to run an API used for creating andannotation query.
Tech
Requirements
Install git
Install make
This environment was run and validated on Ubuntu distribution
How to make
Note: Before creating the environment it is necessary to pass some environment variables:
MYSQL_PASSWORD - Variable defined for MYSQL user password that will be used by the Node API
MYSQL_ROOT_PASSWORD - Variable set for MYSQL root password
MYSQL_PORT - Variable set to MYSQL port
NODEJS_API_PORT - Variable defined for the Node API port
NGINX_LISTEN_PORT - Variable set for Nginx proxy port
STEP 1 - Clone the repo
STEP 2 - Enter the environment variables:
STEP 3 - Prepare the environment
STEP 4 - Create the environment
Access
API Functional Test
To test the operation of the API, I performed the following commands in powershell:
Post Method
Get method
Delete method
API Avaliation
Post Method - To perform this method it was necessary to pass some text value to the API, because in case of null value, we would receive the message 'texto inválido'. Note: It was also not possible to send special characters like '?, Ç, &' and so on.
Get Method - This was just to fetch some specific content.
Delete method - To perform this method it was necessary only to pay attention to the valid id in the API, because in case of invalid id, we would receive the message 'id inválido'.