https://github.com/michelpl/moneys
https://github.com/michelpl/moneys
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/michelpl/moneys
- Owner: michelpl
- License: gpl-3.0
- Created: 2023-11-10T12:51:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-31T15:18:19.000Z (9 months ago)
- Last Synced: 2025-01-14T16:07:01.286Z (5 months ago)
- Language: JavaScript
- Size: 6.83 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# $ Moneys
[](https://app.getpostman.com/run-collection/#)
## Api doc
[Api documentation](https://documenter.getpostman.com/view/#)## 📈 Sequence diagram
## ⬆️ Dependencies
* ``Docker`` 19.03.5+
* ``Docker Compose`` 1.23.1+## Make sure the following ports are avaliable in your server
* ``Port 8000`` For Backend API
* ``Port 3306`` For database## 💚 Building the environment
Clone this repository
```bash
https://github.com/michelpl/stock-api.git
```Enter in repository folder
```bash
cd hiring-challenge
```Run de follwing command
```bash
make install
```## 💚 Building the environment (manually)
Clone this repository
```bash
https://github.com/michelpl/stock-api.git
```Enter in repository folder
```bash
cd moneys
```Create the .env file
Use .env.example as example
```bash
cp src/.env.example src/.env
```Running services
```bash
docker-compose up -d
```
Get the composer dependencies```bash
docker-compose exec webapi composer update -vvv
```Running Laravel migrations
```bash
docker-compose exec webapi php artisan migrate
```## ⏪️ Stoping services
```bash
make stop
```or
```bash
docker-compose down
```## 🚀 Running Scheduled Tasks Manually
```bash
docker-compose exec webapi php artisan schedule:run
```## The Hiring Challenge API will be avaliable on
```bash
http://localhost:8000/api
```## 🧑💻 Consuming the API
[](https://app.getpostman.com/run-collection/#)
## 🧑💻 Development environment
For changing project files in your machine, you need to run the following permissons
```bash
$ find src/ -type d -exec chmod 775 {} \;
$ find src/ -type f -exec chmod 664 {} \;
$ chown -R www-data:$USER src
```or
```bash
make permissions
```## ✅ Running tests
```bash
make test
```or
```bash
docker exec -it webapi php artisan test
```## 🔊 Logs
You can find all the api logs on ``src/storage/logs``
Or just executing the following command
```bash
make show_logs
```