git clone git@github.com:randelpalu/7p.git project-dir
cd project-dir
git config core.fileMode false
sudo chmod 777 -R *
cp .env.example .envcd laravel
cp .env.example .env
cd ..cd frontend
cp .env.example .env
cd ..Make sure ports used in docker-compose.yml are available on local machine
docker-compose up --build -dGet laravel container name, and run migration in container:
docker psdocker exec -it <container_id_or_name> /bin/bash
php artisan migrate --seedphp artisan testdocker-compose up -ddocker-compose downAfter successfully starting the Docker containers, the applications Vue frontend will be available at http://localhost:82.
GET All Customers:
- Endpoint: http://localhost:82/api/customers/
GET Single Customer:
- Endpoint: http://localhost:82/api/customers/:id
- Replace :id with the specific customer ID.
POST Create Customer:
- Endpoint: http://localhost:82/api/customers
- Use this endpoint to create a new customer.
PUT Update Customer:
- Endpoint: http://localhost:82/api/customers/:id
- Replace :id with the specific customer ID.
DELETE Delete Customer:
- Endpoint: http://localhost:82/api/customers/:id
- Replace :id with the specific customer ID.
Customer Example:
{
"id": 1,
"created_at": "2023-11-30T02:39:20.000000Z",
"updated_at": "2023-11-30T02:39:20.000000Z",
"first_name": "Kylee",
"last_name": "Johns",
"dob": "1941-04-08",
"username": "gmccullough",
"password": "123PassworD"
}