-
Clone the repo
git clone https://github.com/ledhcg/rikedu-api.git
-
Go to folder
cd rikedu-api
-
Build and run with docker
(sudo) docker-compose --env-file .env.docker up --build
-
Running Seeders
(sudo) docker-compose exec api php artisan migrate:fresh --seed
-
You can use:
- [API] on
127.0.0.1:80
orlocalhost:80
-
Clone the repo
git clone https://github.com/ledhcg/rikedu-api.git
-
Go to folder
cd rikedu-api/src
-
Copy ".env.example" to ".env"
-
Install package
composer install
-
Generate key
php artisan key:generate
-
Link storage
php artisan storage:link
-
Running Seeders
-
Active XAMPP Apache and MySQL
php artisan migrate:fresh --seed
-
You can use:
php artisan serve
- [API] on
127.0.0.1:8000
orlocalhost:8000
Using Command Palette (CMD/CTRL + Shift + P)
CMD/CTRL + Shift + P -> Format Document
OR
1. Select the text you want to Prettify
2. CMD/CTRL + Shift + P -> Format Selection
Install dev package
npm install
- docker-compose.yaml
- Dockerfile.api
- .env.docker
- package.json
- README.md
- .prettierrc.json
- Add lines:
/node_modules
/.fleet
/.idea
/.vscode
# ignore lock file
package-lock.json
# docker
/mysql
- Add lines:
PROJECT_NAME=RIKEDU
MYSQL_DATABASE=rikedu
MYSQL_USER=rikedu
MYSQL_PASSWORD=secret
MYSQL_ROOT_PASSWORD=secret
PMA_HOST=db
PMA_USER=root
PMA_PASSWORD=secret
- Open the Postman app and select the collection "RIKEDU".
- Click on the "..." button next to the collection name and select "View Documentation".
- The documentation will be displayed in a new tab in the Postman app.