Skip to content

randelpalu/7p

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Setup

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 .env
cd 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 -d

Get laravel container name, and run migration in container:

docker ps
docker exec -it <container_id_or_name> /bin/bash
php artisan migrate --seed

API Tests, run in laravel dir

php artisan test

Starting/Stopping

docker-compose up -d
docker-compose down

Accessing the Application

After successfully starting the Docker containers, the applications Vue frontend will be available at http://localhost:82.

If you want to interact with the API

GET All Customers:

GET Single Customer:

POST Create Customer:

PUT Update Customer:

DELETE Delete Customer:

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"
}

About

Laravel-Vue-TS CRUD app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors