https://github.com/genaker/ata
Athlete To Athlete
https://github.com/genaker/ata
Last synced: 8 months ago
JSON representation
Athlete To Athlete
- Host: GitHub
- URL: https://github.com/genaker/ata
- Owner: Genaker
- Created: 2024-11-21T03:31:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-21T05:23:25.000Z (over 1 year ago)
- Last Synced: 2025-05-04T09:59:21.387Z (about 1 year ago)
- Language: PHP
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Description
I chose Laravel PHP and Node JS for this task. As a user prompt, I used CLI. I love console APPs.Also, the beauty of this solution. Laravel uses Seeds and migrations to create DB and Node JS reuses the data. The same data Laravel generated. Even the DB connection is from the same .env file.
## To install :
```
git clone https://github.com/Genaker/ATAcomposer
composer install
install npm install
```
## add .env DB connections
```
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=movie_theater
DB_USERNAME=root
DB_PASSWORD=
```
## Run all migrations and seed
```
php artisan migratephp
artisan db:seed
```
Now we are ready to run user input via the console:<\br>
## PHP:
```
php artisan app:top-theater
```
## NodeJS:
```
node js_src/js-cli.js
```