Skip to content

Latest commit

 

History

History
132 lines (91 loc) · 2.2 KB

README.md

File metadata and controls

132 lines (91 loc) · 2.2 KB

Gestion-Laravel-VueJs

How to run the project

  1. Clone the project
git clone
  1. Enter Frontend
cd frontend
  1. Install dependencies
npm install
  1. Run the Frontend
npm run dev
  1. Enter Backend
cd backend
  1. Install dependencies
composer install
  1. Run
cp .env.example .env or copy .env.example .env
  1. Run
Run php artisan key:generate
  1. Run the Backend
php artisan serve

Endpoints

Method Endpoint Description
POST /api/v1/register Register a user
POST /api/v1/login Login a user

How to use the project

  1. Open postman

  2. Send a POST request to /api/v1/register to register a user

    • The request body should be in JSON format
    • The request body should contain the following fields exemple:
     {
         "name" : "Admin",
         "role" : "Admin",
         "email" : "admin@gmail",
         "username" : "admin",
         "password" : "adminadmin",
         "password_confirmation" : "adminadmin"
     }
  3. Send a POST request to /api/v1/login to login a user

    • The request body should be in JSON format
    • The request body should contain the following fields exemple:
     {
        "username" : "admin",
        "password" : "adminadmin"
      }

Pictures from Live Application

  • SignIn Page :

Agents Page

  • Agents Page :

Agents Page

  • Dashboard Page:

Agents Page

  • Parcelles Page:

Agents Page

Author