Manage exchange rate

Jesús 82b79eee2f Rename CSS class social-media to federated-network 5 months ago
app eb3d242df0 Add search in trashed 5 months ago
bootstrap 08301e357d initial 6 months ago
config 08301e357d initial 6 months ago
database 57212d87fe Add seeds, Auth and improve frontend with layout 5 months ago
public 82b79eee2f Rename CSS class social-media to federated-network 5 months ago
resources 82b79eee2f Rename CSS class social-media to federated-network 5 months ago
routes 56c3721fc9 Add key API support 5 months ago
storage 08301e357d initial 6 months ago
tests ac374862e6 step first 5 months ago
.ac-php-conf.json 08301e357d initial 6 months ago
.editorconfig 08301e357d initial 6 months ago
.env.example 08301e357d initial 6 months ago
.gitattributes 08301e357d initial 6 months ago
.gitignore 08301e357d initial 6 months ago
.htaccess c2b9efcc47 Add htaccess 5 months ago
.styleci.yml 08301e357d initial 6 months ago
LICENSE 08301e357d initial 6 months ago
Procfile 95fd38fbc4 Add Procfile 5 months ago
README.md bc16327cc6 update README.md 5 months ago
artisan 08301e357d initial 6 months ago
composer.json 1181929be6 Add laravel/ui 5 months ago
composer.lock fb4ba5acc7 bump 5 months ago
docker-compose.yml 790d6005a8 docker-compose.yml: add restart: unless-stopped 5 months ago
package-lock.json ac374862e6 step first 5 months ago
package.json ac374862e6 step first 5 months ago
phpunit.xml 08301e357d initial 6 months ago
server.php 08301e357d initial 6 months ago
webpack.mix.js 57212d87fe Add seeds, Auth and improve frontend with layout 5 months ago

README.md

Manage exchange rate

Module to manage exchange rate

Usage

Clone repository

$ git clone https://git.conocimientoslibres.ga/testing/tkambio.git

Docker-compose

$ docker-compose up -d

Tips

Query tables of database

$ doas docker exec db_tkambio sh -c "mysql -u root -pmy_password -e 'SHOW TABLES FROM my_database;'"

Query the structure of table in database. For example, query money table

$ doas docker exec db_tkambio sh -c "mysqlshow -uroot -pmy_password my_database money"

Run npm dependencies for frontend

$ doas docker exec app_tkambio sh -c 'npm run dev'

Run seeders

$ doas docker exec app_tkambio php artisan db:seed

Run test

$ doas docker exec app_tkambio sh -c 'vendor/bin/phpunit'

Query API

$ http://{server}:3000/api/exchange/PEN-USD?key=hvrpvqUK0te1FDWeAyGQJCD6E0a1NMEepJcI6DY3qSz5g

Run migrate and seeders

$ doas docker exec -it app_tkambio bash
$ php artisan migrate --seed

License

This work is licensed under the GNU GPLv3+