Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/testing-examples-nanorocks/jellow-assesment
https://github.com/testing-examples-nanorocks/jellow-assesment
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/testing-examples-nanorocks/jellow-assesment
- Owner: testing-examples-nanorocks
- Created: 2021-10-24T07:16:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-07T19:32:17.000Z (about 3 years ago)
- Last Synced: 2024-11-11T14:32:53.079Z (2 months ago)
- Language: PHP
- Size: 839 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JellowAssesment
## API endpoints
## For Laravel API
- We use homestead as dev environment (https://laravel.com/docs/8.x/homestead)
- For Homestead.yaml we have
```
---
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualboxauthorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsafolders:
- map: /JellowAssesment
to: /home/vagrant/code/JellowAssesment/sites:
- map: jellow.repo
to: /home/vagrant/code/JellowAssesment/jellow-laravel/public
databases:
- homesteadfeatures:
- mariadb: false
- ohmyzsh: false
- webdriver: false
- mysql8: true
```
- Don't forget to add ``` jellow.repo 192.168.10.10 ``` in ```/etc/hosts```
- On root in laravel project run `mv .env.example .env`
- Check that you have a DB with name ```jellow```
- When vagrant homestead is setup you can run:
- ```vagrant up # to start to box```
- ```vagrant shh # for ssh the box```
- Navigate to root in the laravel project inside homestead and run:
- ```php artisan migrate --seed``` This will set the tables for the DB and populate data.
- You're done. Try to access the API on http://jellow.repo## For Vue App
- Navigate to the root of the vueJS app
- run: `npm i`
- run: `npm run serve`
- open http://localhost:8080/
- done :)